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

[RFE] user defined global sub templates #674

Open
nocturnalastro opened this issue Aug 7, 2024 · 2 comments
Open

[RFE] user defined global sub templates #674

nocturnalastro opened this issue Aug 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@nocturnalastro
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I find there are common bits of logic that I wish to have shared across templates.

Describe the solution you'd like
The ability to register a set sub-template definitions

{{ define "foo" }}
...
{{ end }}

These are added to each tree of the parsed so they can be used in all templates.

Describe alternatives you've considered
None

Additional context
I work on another project which has a similar feature which we implement here and I'm happy to help implement this if you want.

@nocturnalastro nocturnalastro added the enhancement New feature or request label Aug 7, 2024
Copy link

github-actions bot commented Nov 5, 2024

This issue has become stale and will be closed automatically within 7 days.

@github-actions github-actions bot added the stale Stale issue label Nov 5, 2024
@nocturnalastro
Copy link
Contributor Author

@rsevilla87 @vishnuchalla
What do you think?

@github-actions github-actions bot removed the stale Stale issue label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant