Table Of Contents

Previous topic

TemplateTags

Next topic

Gmap - INCLUDERE LE MAPPE DI GOOGLEMAPS

This Page

Default TemplateTags

smartif

Descrizione:

Jumbo definisce un tag if più potente rispetto a quello definito di default da django. L’implementazione originale si trova su djangosnippets, e permette di gestire le operazioni di confronto:

  • or, and, in,
  • = (or ==),
  • !=, >, >=, < and <=.

Esempio:

{% if answer == 42 %}
And the question was?
{% else %}
{% if name != 'zaphod' %}
One headed.
{% endif %}
{% endif %}