How to generate a set of replicable files and folders in the project? #663
Replies: 3 comments 4 replies
-
@mrlucasrib, thanks for asking this! I have a similar problem. If you really instantiate files from your template in different locations, I imagine what could work is that you keep your templates in several subdirectories and instantiate them sequentially. But in my experience having a disjunct set of files is rarely the case. My use case is more like that I have a "base" template and I want to add multiple optional extensions on top, ideally managed in separate projects. |
Beta Was this translation helpful? Give feedback.
-
You can have a template for use cases. Then:
|
Beta Was this translation helpful? Give feedback.
-
You can use a subdirectory with a templated name.
El vie, 13 may 2022 13:49, Lucas M.R. ***@***.***> escribió:
… There are many sub-templates. Do you know any other packages that have
this functionality?
—
Reply to this email directly, view it on GitHub
<#663 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHNXDL6VMENNPCSMXEMYCTVJZFU3ANCNFSM5VZPVDPA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I would like to know if it is possible to create sub-templates and if so, how to use them. I have a project where we have a very repetitive job of creating new UseCases, where it is necessary to create a different folder with several files with very similar things between them. I wish there was a command like:
copier add usecase GetUserData
and then it would create some files in a folder with the same name.Is this possible? if yes, how?
Also, someone in a specific part of the code (on a router) must add things to an already existing file. is this possible? How?
Beta Was this translation helpful? Give feedback.
All reactions