Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
design:twig:design-manual [18.07.2015 23:46] – angelegt Manuela v.d.Decken | design:twig:design-manual [18.07.2015 23:57] – [Synopsis] Manuela v.d.Decken | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== TWIG für Template-Designer ====== | ====== TWIG für Template-Designer ====== | ||
+ | This document describes the syntax and semantics of the template engine and will be most useful as reference to those creating Twig templates. | ||
+ | ===== Synopsis ===== | ||
+ | |||
+ | 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 twig>< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | <ul id=" | ||
+ | {% for item in navigation %} | ||
+ | < | ||
+ | {% endfor %} | ||
+ | </ul> | ||
+ | |||
+ | < | ||
+ | {{ a_variable }} | ||
+ | </ | ||
+ | </ |