Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request ] - Derivative templates #27

Open
bsless opened this issue Mar 8, 2022 · 0 comments
Open

[Feature request ] - Derivative templates #27

bsless opened this issue Mar 8, 2022 · 0 comments
Labels
analysis needed Needs more design time enhancement New feature or request

Comments

@bsless
Copy link

bsless commented Mar 8, 2022

Creating an entire template to get a few small changes on top of an existing template seems like unreasonable overhead, and following our discussion on Clojurians Slack, I came to the idea of derivative templates - a derivation is defined in terms of the "delta" over an existing template.
This also allows creating a sequence of derivation, each a function of the last.
Derivations need to account for the transformation fns and file changes.

  • transformation fns: chain all of them
  • file changes:
    • if a file with the same name exists, override it
    • if a .diff or .patch file exists, apply it

And that's how you make "epochal" functional templates.
WDYT?

@seancorfield seancorfield added enhancement New feature or request analysis needed Needs more design time labels Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis needed Needs more design time enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants