Searched refs:Twig (Results 151 – 175 of 626) sorted by last modified time
12345678910>>...26
5 The ``random`` function was added in Twig 1.5.8 String and integer handling was added in Twig 1.6.11 The "max" argument was added in Twig 1.38.
5 The ``template_from_string`` function was added in Twig 1.11.17 must add the ``\Twig\Extension\StringLoaderExtension`` extension explicitly when18 creating your Twig environment::20 $twig = new \Twig\Environment(...);21 $twig->addExtension(new \Twig\Extension\StringLoaderExtension());
1 Twig chapter
4 You have multiple ways to install Twig.6 Installing the Twig PHP package31 git clone git://github.com/twigphp/Twig.git38 Using PEAR for installing Twig is deprecated and Twig 1.15.1 was the last44 pear install twig/Twig50 The C extension was added in Twig 1.4.60 Twig comes with a C extension that enhances the performance of the Twig74 deprecated and newer versions of Twig are not available on the PEAR109 And from now on, Twig will automatically compile your templates to take112 ``\Twig\Template::getAttribute()`` method.[all …]
4 This is the documentation for Twig, the flexible, fast, and secure template14 * *Fast*: Twig compiles templates down to plain optimized PHP code. The37 The recommended way to install Twig is via Composer:47 the Twig C extension.52 This section gives you a brief introduction to the PHP API for Twig.58 $loader = new \Twig\Loader\ArrayLoader([61 $twig = new \Twig\Environment($loader);65 Twig uses a loader (``\Twig\Loader\ArrayLoader``) to locate templates, and an66 environment (``\Twig\Environment``) to store the configuration.75 $twig = new \Twig\Environment($loader, [[all …]
4 The ``if`` statement in Twig is comparable with the if statements of PHP.
5 template, when sandboxing is not enabled globally for the Twig environment:16 enabled (see the :doc:`Twig for Developers<../api>` chapter).
21 The assigned value can be any valid :ref:`Twig expression53 If you enable automatic output escaping, Twig will only consider the58 Note that loops are scoped in Twig; therefore a variable declared inside a
6 As of Twig 1.38, use the :doc:`spaceless <../filters/spaceless>` filter instead.
5 The ``verbatim`` tag was added in Twig 1.12 (it was named ``raw`` before).8 parsed. For example to put Twig syntax as example into a template you can use
3 use Twig\NodeVisitor\AbstractNodeVisitor;
3 use Twig\Loader\ExistsLoaderInterface;
3 use Twig\Extension\AbstractExtension;
12 use Twig\Node\Node;
3 use Twig\NodeVisitor\NodeVisitorInterface;
3 use Twig\Extension\SandboxExtension;
3 use Twig\Extension\StagingExtension;
3 use Twig\Extension\StringLoaderExtension;
12 use Twig\Extension\ExtensionInterface;
3 use Twig\Node\Expression\Binary\ModBinary;
3 use Twig\Node\Expression\Binary\NotInBinary;
3 use Twig\Node\Expression\Binary\RangeBinary;
3 use Twig\Node\Expression\Binary\StartsWithBinary;
3 use Twig\Sandbox\SecurityNotAllowedMethodError;