Lines Matching refs:in

27 The ``collectDir()`` method compiles all templates found in a directory,
101 A template can be customized in two different ways:
107 template it finds in a list of configured directories; a template found in a
108 directory *replaces* another one from a directory further in the list.
111 (aka a template in a directory further in the list)?
114 and ``.../templates/default`` in this order. The ``page.twig`` template,
115 stored in ``.../templates/default`` reads as follows:
125 You can replace this template by putting a file with the same name in
131 {# page.twig in .../templates/mysite #}
139 other directories: ``.../templates`` in our case. This has the effect of
141 time you will use the "normal" paths, but in the special case of wanting to
143 parent's full, unambiguous template path in the extends tag:
147 {# page.twig in .../templates/mysite #}
202 ``title`` public property in the ``article`` object.
206 ``__isset()`` magic method like shown in the following snippet of code::
229 Accessing the parent Context in Nested Loops
243 And the following template to display all messages in all topics:
247 {% for topic, messages in topics %}
249 {% for message in messages %}
266 context. So, the index of the current ``topic`` defined in the outer for loop
292 If you register more than one callback, Twig will call them in turn until one
305 saving it. If the template code is stored in a `$template` variable, here is
317 ``tokenize()`` method to get the filename in the exception message::
330 ``\Twig\Source`` was introduced in version 1.27, pass the source and the
398 If you are developing a CMS, templates are usually stored in a database. This
402 First, let's create a temporary in-memory SQLite3 database to work with::
488 contributed templates in a database, you might want to keep the original/base
492 As you can see in the previous recipe, we reference the template in the exact
508 Now that the ``base.twig`` templates is defined in an array loader, you can
514 From a template, you can easily load a template stored in a string via the
522 From PHP, it's also possible to load a template stored in a string via
532 Using Twig and AngularJS in the same Templates
535 Mixing different template syntaxes in the same file is not a recommended
536 practice as both AngularJS and Twig use the same delimiters in their syntax:
539 Still, if you want to use AngularJS and Twig in the same template, there are
541 include in your templates: