macro hides all other variables?
does macro hide all other variables passed from views?
add a comment
does macro hide all other variables passed from views?
Yes, Jinja2 macros have only access to variables passed explicitly, or via other special channels that Jinja2 templating uses.
This may be circumvented by creating custom template filter functions as inside functions it is possible to do more.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2013-08-01 06:39:17 -0500
Seen: 140 times
Last updated: Aug 01 '13