This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:design:twig:design-manual [30.07.2015 20:36] – this page has moved mrbaseman | en:design:twig:design-manual [30.07.2015 20:39] (current) – revert previous edit - I am sorry, I was confused mrbaseman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | this page has moved here: [[en: | + | ====== |
+ | This document describes the syntax and semantics of the template engine and is very useful as a reference for creating Twig templates. | ||
+ | |||
+ | ===== Overview ===== | ||
+ | |||
+ | A template is simply a text file. It can generate any text-based format (HTML, XML, CSV, LaTeX, etc.). It doesn' | ||
+ | |||
+ | A template contains variables or expressions, | ||
+ | |||
+ | Below is a minimal template that illustrates a few basics. We will cover further details later on: | ||
+ | |||
+ | <code html5>< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | <ul id=" | ||
+ | {% for item in navigation %} | ||
+ | < | ||
+ | {% endfor %} | ||
+ | </ul> | ||
+ | |||
+ | < | ||
+ | {{ a_variable }} | ||
+ | </ | ||
+ | </ |