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

Is here {% macro macroName(args) %}? #1

Open
Ethosa opened this issue Mar 10, 2023 · 1 comment
Open

Is here {% macro macroName(args) %}? #1

Ethosa opened this issue Mar 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Ethosa
Copy link

Ethosa commented Mar 10, 2023

I can use macro syntax in Jinja2:

{% macro myMacro(someData) %}
....
{%endmacro %}


{% macro myMacroRecursive(someData) %}
....
{{- myMacroRecursive(someData) -}}  <!-- Recursive macro calling -->
...
{%endmacro %}

{{ myMacro(myData) }}  <!-- macro calling -->
@cmd410
Copy link
Owner

cmd410 commented Mar 10, 2023

There isn't much here yet. But perhaps sometime in future there will be

@cmd410 cmd410 added the enhancement New feature or request label Mar 10, 2023
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

2 participants