You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you import forms.html without assigning the import to a variable then using named arguments works fine, e.g:
{% import "forms" %}
{{ input(type="text") }}
But if you import forms.html and set it as a variable then passing named arguments throws a ParserException with the message "Can not use named arguments when calling a bean method", e.g.
{% import "forms" as forms %}
{{ forms.input(type="text") }}
The text was updated successfully, but these errors were encountered:
current implementation does not support named arguments , you can work around like this:
···
{% import "forms" as forms %}
{{ forms.input("text") }}
···
Given the following macro saved in the file
forms.html
:If you import
forms.html
without assigning the import to a variable then using named arguments works fine, e.g:But if you import
forms.html
and set it as a variable then passing named arguments throws aParserException
with the message "Can not use named arguments when calling a bean method", e.g.The text was updated successfully, but these errors were encountered: