Twig pages

File extension: .twig, .tw

Twig is a templating language built to make it easier to write PHP into HTML. It has a proprietary syntax that matches PHP.

Read more about it on Twig's site.

Note! Since Servant always renders one page at a time, Twig's template inheritance is not used.

Basic example

<h1>{{ }}</h1>

<ul id="navigation">
{% for node in page.siblings() %}
    <li><a href="/site/docs/template-formats/{{ id }}">{{ }}</a></li>
{% endfor %}