default.txt 413 B

123456789101112131415161718192021
  1. {% if posts|length %}
  2. {% for article in articles %}
  3. <div>
  4. {{ article.title|upper() }}
  5. {# outputs 'WELCOME' #}
  6. </div>
  7. {% endfor %}
  8. {% endif %}
  9. {% set user = json_encode(user) %}
  10. {{ random(['apple', 'orange', 'citrus']) }}
  11. {{ include(template_from_string("Hello {{ name }}")) }}
  12. {#
  13. Comments may be long and multiline.
  14. Markup is <em>not</em> highlighted within comments.
  15. #}