Dotiac::DTL::Tag::firstof - The {% firstof VARIABLE1[|VARIABLE2[|VARIABLE3[|...]]] %} tag
Template file:
{% firstof var1 var2 "default text" %}
Outputs the first true value from its argument list.
This is the same as:
{% if var1 %} {{ var1 }} {% else %} {% if var2 %} {{ var2 }} {% else %} default text {% endif %} {% endif %}
If you find one, please report it.
http://www.djangoproject.com, Dotiac::DTL
Dotiac::DTL was built according to http://docs.djangoproject.com/en/dev/ref/templates/builtins/.
Marc-Sebastian Lucksch
perl@marc-s.de
To install Dotiac::DTL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dotiac::DTL
CPAN shell
perl -MCPAN -e shell install Dotiac::DTL
For more information on module installation, please visit the detailed CPAN module installation guide.