Printing in Templates

Created on Sept. 5, 2012, 8:31 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:25 p.m.

Whether variables get correctly passed to a template can be checked with printing: ::

{% if item %}
    {{ item }}
{% else %}
    Item was not passed #Debug
{% endif %}

Tags: tutorial, templating
Parent: Web Framework

Update entry (Admin) | See changes

Comment on This Data Unit