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

macros (as in Jinja) #238

Open
snej opened this issue Mar 23, 2022 · 2 comments
Open

macros (as in Jinja) #238

snej opened this issue Mar 23, 2022 · 2 comments

Comments

@snej
Copy link

snej commented Mar 23, 2022

The macro feature in Jinja would be super great to have. I'm finding myself repeating lots of small snippets in my templates, things for which include in't well suited (too heavyweight and doesn't take parameters.)

@xahon
Copy link

xahon commented Jul 11, 2022

@snej Inlcude takes variables from current scope but it can't set output variables, unfortunately

@navrocky
Copy link

I agree, it's a much-needed feature. Currently, I'm using the includes as workaround, but it's inconvenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants