-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TemplateSyntaxError: expected token 'name', got ')' #100
Comments
njl
added a commit
to njl/jinja2
that referenced
this issue
Mar 13, 2012
This change will allow trailing commas in macro definitions, and in calls to macros.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I get this error when writign a macro with a trailing comma:
{% macro foo (
bar,
)%}
...
{% endmacro %}
Although it's not strictly required to make the macro work (I can just drop the trailing comma), it's quite convenient VCS-wise: if I add another parameter, I don't get a diff on the last existing parameter just because I need to add a comma.
The text was updated successfully, but these errors were encountered: