~bakpakin/temple

ref: e7d6a355857991a00525a237928a466a781d94f5 temple/test/templates/foo.temple -rw-r--r-- 296 bytes
e7d6a355Calvin Rose First commit. 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
{$ (def n 20) # Run at template compile time $}
<html>
  <body>
    {{ (string/repeat "<>" n) # HTML escaped }}
    <ul>
      {% (each x (range n) (print "<li>" x " " (args :a) "</li>")) # No auto-print %}
    </ul>
    {- (string/repeat "<span></span>" n) # No HTML escape -}
  </body>
</html>