Support for multiple templates for the same project #15
KostyaEsmukov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea is to allow templates be composed. For example, one project could be synchronised with the following templates:
This is quite cumbersome to achieve with plain cookiecutter, as after applying the first template there already are files in the target project, so applying another template on top of that wouldn't work. But with scaraplate it's easier, given that it can rollup templates on top of already existing projects.
In fact, this can already be achieved right now, the only thing to consider is separating cookiecutter context types. But currently it is impossible to write multiple template contexts to the same file (e.g.
.scaraplate.conf
) using the built-inCookieCutterContext
implementations.DoD:
ScaraplateConf
andSetupCfg
support multiple templates by separating the contextsBeta Was this translation helpful? Give feedback.
All reactions