Lines Matching refs:that

31 First, remember that Twig has two main language constructs:
58 In fact, you rarely need to create tags; and that's good news because tags are
114 A global variable is like any other template variable, except that it's
226 Some filters may need to work on input that is already escaped or safe, for
247 Be warned that :ref:`named arguments <named-arguments>` passed to a variadic
284 to ``true``. You can also give an alternative filter that replaces the
285 deprecated one when that makes sense::
322 boolean conditions. As a simple example, let's create a Twig test that checks if
363 The above example shows how you can create tests that use a node class. The
365 value that is being tested. When the ``odd`` filter is used in code such as:
373 various other arguments that have been provided to your test.
395 For instance, if you want to create a tag that converts a Markdown formatted
415 effect, create a **function** that returns nothing and call it via the
418 For instance, if you want to create a tag that logs text, create a ``log``
427 Let's create a simple ``set`` tag that allows the definition of simple
491 tag. It should return a ``\Twig\Node\Node`` instance that represents the node (the
542 The compiler implements a fluid interface and provides methods that helps the
590 An extension is a class that implements the following interface::
597 * This is where you can load some file that contains filter functions for instance.
851 as a dependency that connects to a database engine).
855 instance on the environment that knows how to instantiate such runtime classes
878 (``\Twig\RuntimeLoader\ContainerRuntimeLoader``) that works on PHP 5.3+.
937 If you do the same on the ``\Twig\Environment`` itself, beware that it takes
950 Note that overloading the built-in Twig elements is not recommended as it