What's on this page
Templates
Cecil is powered by the Twig template engine, so please refer to the official documentation to learn how to use it.
Example
{# this is a template example #}
<h1>{{ page.title }} - {{ site.title }}</h1>
<span>{{ page.date|date('j M Y') }}</span>
<p>{{ page.content }}</p>
<ul>
{% for tag in page.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul> {# #}: adds comments{{ }}: outputs content of variables or expressions{% %}: executes statements, like loop (for), condition (if), etc.|filter(): filters or formats content
In this section
Organization and lookup rules Kinds of templates, naming convention, built-in templates and how a template is chosen for a page. Variables Variables available in templates: site, page and cecil. Functions and filters › Reference of the Twig functions, sorts and filters provided by Cecil. Components Create reusable template components. Localization Translate texts and localize dates in templates. Cache Templates cache and fragments cache. Extend Add custom functions and filters, or use a theme.