-
Notifications
You must be signed in to change notification settings - Fork 5
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
Template Generation #13
Comments
This seems like a great idea!
The goal is to be able to generate different outputs based on configuration. The only other alternative I can think of is using The downside I see to this approach is that now the templates exist inline inside a macro, which comes with all the downsides of maintaining macros.
Before continuing I think it would be useful to establish some terminology to reduce confusion:
I would think that "templates" should be checked into source as-is, and we should probably generate the "snippets" ourselves. I'm not sure how much there would be to generating them, but probably some form of string concatenation would work well for most initial implementations.
Good question. I think this is probably something to be decided during implementation, if we go with snippets. If think this also applies when generating snippets dynamically.
We can probably ask a few more questions:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Wtf?! This is really not a good bot when it comes to tracking issues 😩 |
@spacekookie haha, yeah. There's some config possible, but haven't looked to deeply into it. Might be worth it tho. |
Feature Request
Summary
There needs to be a better system in place to generate templates from snippets. This would allow us to generate templates on the fly for all sorts of crate configurations without having to keep all possible templates in files in the repo.
Motivation
Currently each template is just a file, which means that small changes to a template would require duplicating the entire file. This is very non-modular.
Drawbacks
If not done correctly it could result in quite unmaintainable code.
Unresolved Questions
The text was updated successfully, but these errors were encountered: