Lines Matching refs:to
7 If you have any exposure to other text-based template languages, such as
9 designer and developer friendly by sticking to PHP's principles and adding
14 * *Fast*: Twig compiles templates down to plain optimized PHP code. The
15 overhead compared to regular PHP code was reduced to the very minimum.
17 * *Secure*: Twig has a sandbox mode to evaluate untrusted template code. This
18 allows Twig to be used as a template language for applications where users
22 developer to define their own custom tags and filters, and to create their own DSL.
26 Slim, Yii, Laravel, Codeigniter and Kohana — just to name a few.
31 Twig needs at least **PHP 5.2.7** to run. As of 1.34, the minimum requirement
32 was bumped to **PHP 5.3.3**.
37 The recommended way to install Twig is via Composer:
46 :doc:`installation<installation>` chapter; it also explains how to install
52 This section gives you a brief introduction to the PHP API for Twig.
56 require_once '/path/to/vendor/autoload.php';
65 Twig uses a loader (``\Twig\Loader\ArrayLoader``) to locate templates, and an
66 environment (``\Twig\Environment``) to store the configuration.
74 $loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
76 'cache' => '/path/to/compilation_cache',
85 require_once '/path/to/lib/Twig/Autoloader.php';