Home
last modified time | relevance | path

Searched refs:twig (Results 1 – 25 of 116) sorted by relevance

12345

/template/twigstarter/vendor/twig/twig/doc/filters/
H A Du.rst16 .. code-block:: twig
27 .. code-block:: twig
37 .. code-block:: twig
44 .. code-block:: twig
49 {{ 'symfony_string with twig'|u.camel.title }}
54 .. code-block:: twig
65 .. code-block:: twig
78 $ composer require twig/string-extra
84 $ composer require twig/extra-bundle
90 $twig = new \Twig\Environment(...);
[all …]
H A Dmarkdown_to_html.rst10 .. code-block:: twig
22 .. code-block:: twig
33 .. code-block:: twig
35 {{ include('some_template.markdown.twig')|markdown_to_html }}
46 $ composer require twig/markdown-extra
48 Then, on Symfony projects, install the ``twig/extra-bundle``:
52 $ composer require twig/extra-bundle
58 $twig = new \Twig\Environment(...);
59 $twig->addExtension(new MarkdownExtension());
67 $twig->addRuntimeLoader(new class implements RuntimeLoaderInterface {
[all …]
H A Dinline_css.rst10 .. code-block:: html+twig
27 .. code-block:: html+twig
42 .. code-block:: twig
44 {{ include('some_template.html.twig')|inline_css }}
46 {{ include('some_template.html.twig')|inline_css(source("some_styles.css")) }}
57 $ composer require twig/cssinliner-extra
59 Then, on Symfony projects, install the ``twig/extra-bundle``:
63 $ composer require twig/extra-bundle
69 $twig = new \Twig\Environment(...);
70 $twig->addExtension(new CssInlinerExtension());
H A Dformat_number.rst10 .. code-block:: twig
16 .. code-block:: twig
48 .. code-block:: twig
72 .. code-block:: twig
82 .. code-block:: twig
89 .. code-block:: twig
101 $ composer require twig/intl-extra
103 Then, on Symfony projects, install the ``twig/extra-bundle``:
107 $ composer require twig/extra-bundle
113 $twig = new \Twig\Environment(...);
[all …]
H A Dinky_to_html.rst11 .. code-block:: html+twig
22 .. code-block:: twig
24 {{ include('some_template.inky.twig')|inky_to_html }}
33 $ composer require twig/inky-extra
35 Then, on Symfony projects, install the ``twig/extra-bundle``:
39 $ composer require twig/extra-bundle
45 $twig = new \Twig\Environment(...);
46 $twig->addExtension(new InkyExtension());
H A Dformat_currency.rst10 .. code-block:: twig
17 .. code-block:: twig
49 .. code-block:: twig
61 $ composer require twig/intl-extra
63 Then, on Symfony projects, install the ``twig/extra-bundle``:
67 $ composer require twig/extra-bundle
73 $twig = new \Twig\Environment(...);
74 $twig->addExtension(new IntlExtension());
H A Dformat_datetime.rst10 .. code-block:: twig
17 .. code-block:: twig
35 .. code-block:: twig
42 .. code-block:: twig
54 $ composer require twig/intl-extra
56 Then, on Symfony projects, install the ``twig/extra-bundle``:
60 $ composer require twig/extra-bundle
66 $twig = new \Twig\Environment(...);
67 $twig->addExtension(new IntlExtension());
H A Dcountry_name.rst11 .. code-block:: twig
18 .. code-block:: twig
30 $ composer require twig/intl-extra
32 Then, on Symfony projects, install the ``twig/extra-bundle``:
36 $ composer require twig/extra-bundle
42 $twig = new \Twig\Environment(...);
43 $twig->addExtension(new IntlExtension());
H A Dcurrency_symbol.rst11 .. code-block:: twig
21 .. code-block:: twig
33 $ composer require twig/intl-extra
35 Then, on Symfony projects, install the ``twig/extra-bundle``:
39 $ composer require twig/extra-bundle
45 $twig = new \Twig\Environment(...);
46 $twig->addExtension(new IntlExtension());
H A Dhtml_to_markdown.rst10 .. code-block:: html+twig
20 .. code-block:: twig
22 {{ include('some_template.html.twig')|html_to_markdown }}
31 $ composer require twig/markdown-extra
34 ``twig/extra-bundle``:
38 $ composer require twig/extra-bundle
44 $twig = new \Twig\Environment(...);
45 $twig->addExtension(new MarkdownExtension());
53 $twig->addRuntimeLoader(new class implements RuntimeLoaderInterface {
71 .. code-block:: html+twig
H A Dlanguage_name.rst11 .. code-block:: twig
18 .. code-block:: twig
33 $ composer require twig/intl-extra
35 Then, on Symfony projects, install the ``twig/extra-bundle``:
39 $ composer require twig/extra-bundle
45 $twig = new \Twig\Environment(...);
46 $twig->addExtension(new IntlExtension());
H A Dlocale_name.rst11 .. code-block:: twig
18 .. code-block:: twig
33 $ composer require twig/intl-extra
35 Then, on Symfony projects, install the ``twig/extra-bundle``:
39 $ composer require twig/extra-bundle
45 $twig = new \Twig\Environment(...);
46 $twig->addExtension(new IntlExtension());
H A Dcurrency_name.rst11 .. code-block:: twig
21 .. code-block:: twig
33 $ composer require twig/intl-extra
35 Then, on Symfony projects, install the ``twig/extra-bundle``:
39 $ composer require twig/extra-bundle
45 $twig = new \Twig\Environment(...);
46 $twig->addExtension(new IntlExtension());
H A Dtimezone_name.rst10 .. code-block:: twig
20 .. code-block:: twig
32 $ composer require twig/intl-extra
34 Then, on Symfony projects, install the ``twig/extra-bundle``:
38 $ composer require twig/extra-bundle
44 $twig = new \Twig\Environment(...);
45 $twig->addExtension(new IntlExtension());
H A Dslug.rst9 .. code-block:: twig
17 .. code-block:: twig
26 .. code-block:: twig
40 $ composer require twig/string-extra
42 Then, on Symfony projects, install the ``twig/extra-bundle``:
46 $ composer require twig/extra-bundle
52 $twig = new \Twig\Environment(...);
53 $twig->addExtension(new StringExtension());
/template/twigstarter/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php164 $twig = new Environment($loader, $config);
165 $twig->addGlobal('global', 'global');
167 $twig->addRuntimeLoader($runtimeLoader);
171 $twig->addExtension($extension);
175 $twig->addFilter($filter);
179 $twig->addTest($test);
183 $twig->addFunction($function);
187 $p = new \ReflectionProperty($twig, 'templateClassPrefix');
189 … $p->setValue($twig, '__TwigTemplate_'.hash('sha256', uniqid(mt_rand(), true), false).'_');
203 $template = $twig->load('index.twig');
[all …]
/template/twigstarter/vendor/twig/twig/doc/
H A Dcoding_standards.rst10 .. code-block:: twig
19 .. code-block:: twig
31 .. code-block:: twig
40 .. code-block:: twig
48 .. code-block:: twig
54 .. code-block:: twig
62 .. code-block:: twig
72 .. code-block:: twig
80 .. code-block:: twig
87 .. code-block:: twig
[all …]
H A Drecipes.rst67 .. code-block:: twig
81 .. code-block:: twig
91 .. code-block:: twig
114 .. code-block:: twig
116 {# page.twig #}
126 .. code-block:: twig
142 .. code-block:: twig
306 $twig->parse($twig->tokenize(new \Twig\Source($template)));
390 ``base.twig`` and ``index.twig``.
445 echo $twig->render('index.twig', ['name' => 'Fabien']);
[all …]
/template/twigstarter/vendor/twig/twig/doc/functions/
H A Dinclude.rst6 .. code-block:: twig
19 .. code-block:: twig
27 .. code-block:: twig
32 .. code-block:: twig
42 $template = $twig->load('some_template.twig');
44 $twig->display('template.twig', ['template' => $template]);
49 .. code-block:: twig
56 .. code-block:: twig
66 .. code-block:: twig
H A Dcountry_timezones.rst11 .. code-block:: twig
23 $ composer require twig/intl-extra
25 Then, on Symfony projects, install the ``twig/extra-bundle``:
29 $ composer require twig/extra-bundle
35 $twig = new \Twig\Environment(...);
36 $twig->addExtension(new IntlExtension());
H A Dhtml_classes.rst11 .. code-block:: html+twig
26 $ composer require twig/html-extra
28 Then, on Symfony projects, install the ``twig/extra-bundle``:
32 $ composer require twig/extra-bundle
38 $twig = new \Twig\Environment(...);
39 $twig->addExtension(new HtmlExtension());
/template/twigstarter/vendor/twig/twig/src/Util/
H A DDeprecationCollector.php23 private $twig; variable in Twig\\Util\\DeprecationCollector
25 public function __construct(Environment $twig) argument
27 $this->twig = $twig;
67 $this->twig->parse($this->twig->tokenize(new Source($contents, $name)));
/template/twigstarter/vendor/twig/twig/doc/tags/
H A Dextends.rst15 .. code-block:: html+twig
109 .. code-block:: twig
135 .. code-block:: twig
141 .. code-block:: twig
150 .. code-block:: twig
159 $layout = $twig->load('some_layout_template.twig');
161 $twig->display('template.twig', ['layout' => $layout]);
166 .. code-block:: twig
176 .. code-block:: twig
195 {# base.twig #}
[all …]
H A Ddeprecated.rst11 .. code-block:: twig
13 {# base.twig #}
14 {% deprecated 'The "base.twig" template is deprecated, use "layout.twig" instead.' %}
15 {% extends 'layout.twig' %}
19 .. code-block:: twig
H A Dset.rst9 .. code-block:: twig
16 .. code-block:: twig
22 <twig-expressions>`:
24 .. code-block:: twig
32 .. code-block:: twig
43 .. code-block:: html+twig
61 .. code-block:: twig
71 .. code-block:: twig

12345