Hi, is there a way how to detect directly in template whether or not is
some extesion loaded or some tag exists?
I'm writing some debug info fragment/template and function for our
webdevelopers and I'm using pygments extension that defines tag {% code %}.
But I would like to have my code independent on that extension in project
which do not use pygments.
Simply woudl like to do something like this:
{% if 'code' is definedTag %}
{% code %}{{ varName }}{% endcode %}
{% else %}
<pre>{{ varName|pprint }}</pre>
{% endif %}
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.