Home
last modified time | relevance | path

Searched refs:twig (Results 26 – 50 of 196) sorted by path

12345678

/plugin/findologicxmlexport/vendor/twig/twig/doc/
H A Dadvanced.rst117 $twig = new \Twig\Environment($loader);
118 $twig->addGlobal('text', new Text());
154 $twig = new \Twig\Environment($loader);
155 $twig->addFilter($filter);
300 $twig = new \Twig\Environment($loader);
304 $twig->addFunction($function);
315 $twig = new \Twig\Environment($loader);
319 $twig->addTest($test);
325 $twig = new \Twig\Environment($loader);
335 $twig->addTest($test);
[all …]
H A Dadvanced_legacy.rst118 $twig = new \Twig\Environment($loader);
119 $twig->addGlobal('text', new Text());
181 $twig = new \Twig\Environment($loader);
316 $twig = new \Twig\Environment($loader);
322 $twig = new \Twig\Environment($loader);
400 $twig = new \Twig\Environment($loader);
401 $twig->addTokenParser(new Project_Set_TokenParser());
631 $twig = new \Twig\Environment($loader);
632 $twig->addExtension(new Project_Twig_Extension());
765 $twig = new \Twig\Environment($loader);
[all …]
H A Dapi.rst28 $twig = new \Twig\Environment($loader, [
52 $template = $twig->load('index.html');
87 $twig = new \Twig\Environment($loader, ['debug' => true]);
210 $twig->render('@admin/index.html', []);
233 $twig = new \Twig\Environment($loader);
235 echo $twig->render('index.html', ['name' => 'Fabien']);
263 $twig = new \Twig\Environment($loader);
332 $twig->addExtension(new \Twig\Extension\SandboxExtension());
382 $twig->addExtension($escaper);
499 $twig->addExtension($sandbox);
[all …]
H A Dinstallation.rst16 composer require twig/twig:~1.0
43 pear channel-discover pear.twig-project.org
44 pear install twig/Twig
65 cd ext/twig
79 pear channel-discover pear.twig-project.org
80 pear install twig/CTwig
85 …ut Twig's C extension source code into ``C:\php-sdk\phpdev\vcXX\x86\php-source-directory\ext\twig``
86 3. Use the ``configure --disable-all --enable-cli --enable-twig=shared`` command instead of step 14
96 --enable-twig=shared`` to be able to build the twig C extension for
106 extension=twig.so #For Unix systems
H A Dinternals.rst47 $stream = $twig->tokenize(new \Twig\Source($source, $identifier));
73 $twig->setLexer($lexer);
85 $nodes = $twig->parse($stream);
107 $twig->setParser($parser);
118 $php = $twig->compile($nodes);
142 $twig->setCompiler($compiler);
H A Dintro.rst41 composer require "twig/twig:~1.0"
61 $twig = new \Twig\Environment($loader);
63 echo $twig->render('index', ['name' => 'Fabien']);
75 $twig = new \Twig\Environment($loader, [
79 echo $twig->render('index.html', ['name' => 'Fabien']);
H A Drecipes.rst21 $twig = create_your_twig_env();
119 {# page.twig #}
120 {% extends "layout.twig" %}
164 $twig = new \Twig\Environment();
172 $twig->setLexer($lexer);
309 $twig->parse($twig->tokenize(new \Twig\Source($template)));
321 $twig->parse($twig->tokenize(new \Twig\Source($template, $file->getFilename(), $file)));
408 {% extends "base.twig" %}
416 ``base.twig`` and ``index.twig``.
482 echo $twig->render('index.twig', ['name' => 'Fabien']);
[all …]
H A Dtemplates.rst50 * *Vim* via the `Jinja syntax plugin`_ or the `vim-twig plugin`_
61 * *Atom* via the `PHP-twig for atom`_
795 due to the :ref:`operator precedence rules <twig-expressions>`:
902 .. _`vim-twig plugin`: https://github.com/lumiliet/vim-twig
903 .. _`Twig syntax plugin`: http://plugins.netbeans.org/plugin/37069/php-twig
905 .. _`Twig language definition`: https://github.com/gabrielcorpse/gedit-twig-template-language
909 .. _`Notepad++ Twig Highlighter`: https://github.com/Banane9/notepadplusplus-twig
912 .. _`PHP-twig for atom`: https://github.com/reesef/php-twig
914 …ack`: https://marketplace.visualstudio.com/items?itemName=bajdzis.vscode-twig-pack
/plugin/findologicxmlexport/vendor/twig/twig/doc/filters/
H A Ddate.rst56 $twig = new \Twig\Environment($loader);
57 $twig->getExtension('\Twig\Extension\CoreExtension')->setDateFormat('d/m/Y', '%d days');
60 $twig->getExtension('core')->setDateFormat('d/m/Y', '%d days');
84 $twig = new \Twig\Environment($loader);
85 $twig->getExtension('\Twig\Extension\CoreExtension')->setTimezone('Europe/Paris');
88 $twig->getExtension('core')->setTimezone('Europe/Paris');
H A Descape.rst99 $twig = new \Twig\Environment($loader);
100 $twig->getExtension('\Twig\Extension\CoreExtension')->setEscaper('csv', 'csv_escaper');
103 $twig->getExtension('core')->setEscaper('csv', 'csv_escaper');
H A Dnumber_format.rst22 Twig's :ref:`precedence of operators <twig-expressions>`:
40 $twig = new \Twig\Environment($loader);
41 $twig->getExtension('\Twig\Extension\CoreExtension')->setNumberFormat(3, '.', ',');
44 $twig->getExtension('core')->setNumberFormat(3, '.', ',');
/plugin/findologicxmlexport/vendor/twig/twig/doc/functions/
H A Dblock.rst26 {{ block("title", "common_blocks.twig") }}
37 {% if block("footer", "common_blocks.twig") is defined %}
H A Ddate.rst43 $twig = new \Twig\Environment($loader);
44 $twig->getExtension('\Twig\Extension\CoreExtension')->setTimezone('Europe/Paris');
47 $twig->getExtension('core')->setTimezone('Europe/Paris');
H A Ddump.rst21 $twig = new \Twig\Environment($loader, [
25 $twig->addExtension(new \Twig\Extension\DebugExtension());
H A Dinclude.rst46 $template = $twig->loadTemplate('some_template.twig');
49 $template = $twig->load('some_template.twig');
51 $twig->display('template.twig', ['template' => $template]);
H A Dtemplate_from_string.rst20 $twig = new \Twig\Environment(...);
21 $twig->addExtension(new \Twig\Extension\StringLoaderExtension());
/plugin/findologicxmlexport/vendor/twig/twig/doc/tags/
H A Ddeprecated.rst12 {# base.twig #}
13 {% deprecated 'The "base.twig" template is deprecated, use "layout.twig" instead.' %}
14 {% extends 'layout.twig' %}
H A Dembed.rst17 {% embed "teasers_skeleton.twig" %}
18 {# These blocks are defined in "teasers_skeleton.twig" #}
117 Page template ``foo.twig``:
121 {% extends "layout_skeleton.twig" %}
124 {% embed "vertical_boxes_skeleton.twig" %}
135 And here is the code for ``vertical_boxes_skeleton.twig``:
151 The goal of the ``vertical_boxes_skeleton.twig`` template being to factor
H A Dextends.rst162 $layout = $twig->loadTemplate('some_layout_template.twig');
165 $layout = $twig->load('some_layout_template.twig');
167 $twig->display('template.twig', ['layout' => $layout]);
204 {# base.twig #}
219 {# child.twig #}
221 {% extends "base.twig" %}
H A Dinclude.rst83 $template = $twig->loadTemplate('some_template.twig');
86 $template = $twig->load('some_template.twig');
88 $twig->display('template.twig', ['template' => $template]);
H A Dset.rst22 <twig-expressions>`:
/plugin/findologicxmlexport/vendor/twig/twig/ext/twig/
H A Dconfig.m41 dnl config.m4 for extension twig
3 PHP_ARG_ENABLE(twig, whether to enable twig support,
4 [ --enable-twig Enable twig support])
7 PHP_NEW_EXTENSION(twig, twig.c, $ext_shared)
H A Dconfig.w323 ARG_ENABLE("twig", "Twig support", "no");
7 EXTENSION('twig', 'twig.c');
H A Dphp_twig.h33 PHP_RSHUTDOWN_FUNCTION(twig);
H A Dtwig.c70 PHP_RSHUTDOWN_FUNCTION(twig) in PHP_RSHUTDOWN_FUNCTION() argument
85 PHP_RSHUTDOWN(twig),
93 ZEND_GET_MODULE(twig) in ZEND_GET_MODULE() argument

12345678