Hi Thanks for the quick reply.
>There is an API for this: http://jinja.pocoo.org/docs/api/#the-meta-api >You want the "find undeclared variables" function. I tried but empty set is returned >>>env = Environment(loader=PackageLoader("blaze", "themes/default/templates")) >>>template = env.get_template("page_content.html") >>>parsed_content = env.parse(template) >>> meta.find_undeclared_variables(parsed_content) 47: set() #page_content.html {% extends base_page.html %} {% block content %} {{ contents }} {% for x in contents %} {{ x }} {% endfor %} {% endblock %} I think because of PackageLoader I am not getting expected output. Thanks Kracekumar -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To view this discussion on the web visit https://groups.google.com/d/msg/pocoo-libs/-/hbnGLi7ZT_wJ. 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.
