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
Migrated issue, originally created by Michael Bayer (@zzzeek)
from mako.template import Template t = Template( """ <%def name="layout(foo)" cached="True" cache_key="${foo}"> foo: ${foo} </%def> ${layout(3)} """, strict_undefined=True ) print t.render()
patch:
diff -r 4b622e16dbdd55b85608103a9a9e33a9f7f7b830 mako/parsetree.py --- a/mako/parsetree.py Wed May 16 10:38:44 2012 -0400 +++ b/mako/parsetree.py Tue Jun 05 12:37:53 2012 +0800 @@ -439,12 +439,15 @@ for c in self.function_decl.defaults: res += list(ast.PythonCode(c, **self.exception_kwargs). undeclared_identifiers) + return set(res).union( self.filter_args.\ undeclared_identifiers.\ difference(filters.DEFAULT_ESCAPES.keys()) ).union( self.expression_undeclared_identifiers + ).difference( + self.function_decl.argnames ) class BlockTag(Tag):
The text was updated successfully, but these errors were encountered:
Michael Bayer (@zzzeek) wrote:
03c97d1
Sorry, something went wrong.
Changes by Michael Bayer (@zzzeek):
No branches or pull requests
Migrated issue, originally created by Michael Bayer (@zzzeek)
patch:
The text was updated successfully, but these errors were encountered: