| 1 | <h2>Full example</h2> |
| 2 | <pre><code><div class="foo"> |
| 3 | <% if true then %> |
| 4 | Hello <%= name %>, |
| 5 | Here are your items: |
| 6 | <% for i, item in pairs(items) do %> |
| 7 | * <%= item -%> |
| 8 | <% --[[ comment block ]] %> |
| 9 | <% end %> |
| 10 | <%- "<b>this is not escaped</b>" %> |
| 11 | <% end %> |
| 12 | </div></code></pre> |