when using  function on a template that is references a global, the
reference is traded as an undeclared param.

i.e.
>>> tpl = "{{a}}"
>>> from jinja2 import meta, Environment
>>> env = Environment()
>>> env.globals['a'] = 'b'
>>> print env.from_string(tpl).render()
b
>>> print meta.find_undeclared_variables(env.parse(tpl))
set(['a'])

is this deliberate or a bug? i think the desired behavior is that the
global is recognized.
what do you think?

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to