PHP Classes

File: tests/assert_templates/filter.tpl

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  Haanga  >  tests/assert_templates/filter.tpl  >  Download  
File: tests/assert_templates/filter.tpl
Role: Auxiliary data
Content type: text/plain
Description: Testing file
Class: Haanga
Template engine to process Django style templates
Author: By
Last change: Added test for #11 (which seems fixed)
Date: 3 years ago
Size: 277 bytes
 

Contents

Class file image Download
{{ var|default:"foobar" }}
{{ var|upper }}
{{ var|upper|lower }}
{{ var|cut:"u" }}
{{ var|length }}
{{ foobar|default:"default value"|upper}}
{% upper %}
    hola que 
{% endupper %}
{% lower %}TAL{% endlower %}
{% filter upper|lower|cut:"e" %}
    hello world
{% endfilter %}
For more information send a message to info at phpclasses dot org.