We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's possible in jinja to have default value for macro arguments:
{% macro input(name, value='', type='text', size=20) -%} <input type="{{ type }}" name="{{ name }}" value="{{value|e }}" size="{{ size }}"> {%- endmacro %}
The text was updated successfully, but these errors were encountered:
Should be easy enough to implement. What kind of default values would you allow? Only literals?
Sorry, something went wrong.
For a first step I think it's enough. We can always add function calls or constructors later on.
Please leave this one to me. :p
Hehe, I will. Have fun with it! :D
Thanks! :D
GuillaumeGomez
No branches or pull requests
It's possible in jinja to have default value for macro arguments:
The text was updated successfully, but these errors were encountered: