Branch
Hash :
36a5fa0e
Author :
Date :
2019-06-30T04:19:54
<h2>Comments</h2>
<pre><code>{# Some comment
on multiple lines
with <html></html>
inside #}</code></pre>
<h2>Keywords</h2>
<pre><code>{% if foo %} bar {% endif %}
{% for key, value in arr if value %} {{ do_something() }} {% endfor %}
{% include 'header.html' %}
{% include 'template.html' with {'foo': 'bar'} %}</code></pre>
<h2>Operators</h2>
<pre><code>{{ not a }}
{{ 20 // 7 }}
{{ b b-and c }}
{% if phone matches '/^[\\d\\.]+$/' %} ... {% endif %}</code></pre>
<h2>Twig embedded in HTML</h2>
<pre><code><div>
{% if foo %}
<p>Foo!</p>
{% else %}
<p>Not foo...</p>
{% endif %}</code></pre>