Sha256: 6d42ad6880137e1b52d9d407cb41446568b881748aebf7e9ab71f88aa88bbbe5

Contents?: true

Size: 650 Bytes

Versions: 3

Compression:

Stored size: 650 Bytes

Contents

<tmpl_loop simple>Foo is <tmpl_if expr="(foo > 10)">greater than<tmpl_else>less than</tmpl_if> 10.
</tmpl_loop>

<tmpl_loop complex>
   <tmpl_if expr="color eq 'blue'"><blue></tmpl_if>
   Name: <tmpl_var expr="ucfirst(fname)"> <tmpl_var expr="ucfirst(lname)">
   Stats:
   <tmpl_if expr="color eq 'blue'"><blue></tmpl_if>
   <tmpl_loop inner><tmpl_var stat_name> <tmpl_if expr="stat_value > 10">[high]<tmpl_else><tmpl_if expr="stat_value < 1">[low]<tmpl_else>[medium]</tmpl_if></tmpl_if>
   Color: <tmpl_var color>
   </tmpl_loop>
   <tmpl_if expr="color eq 'blue'"></blue></tmpl_if>
   <tmpl_if expr="color eq 'blue'"></blue></tmpl_if>
</tmpl_loop>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html-template-pro-0.0.3 test/templates/loop.tmpl
html-template-pro-0.0.2 test/templates/loop.tmpl
html-template-pro-0.0.1 test/templates/loop.tmpl