Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (19 sloc) 504 Bytes
appeared 2009
type template
website https://twig.symfony.com/
github https://github.com/mitsuhiko/twig
wikipedia Twig_(template_engine)
example
{% extends "base.html" %}
{% block navigation %}
<ul id="navigation">
{% for item in navigation %}
<li>
<a href="{{ item.href }}">
{% if item.level == 2 %}&nbsp;&nbsp;{% endif %}
{{ item.caption|upper }}
</a>
</li>
{% endfor %}
</ul>
{% endblock navigation %}
You can’t perform that action at this time.