Home
last modified time | relevance | path

Searched refs:twig (Results 51 – 75 of 196) sorted by relevance

12345678

/plugin/findologicxmlexport/vendor/twig/extensions/test/Twig/Tests/
H A DgrammarTest.php27 …$twig = new Twig_Environment(new Twig_Loader_Array(array('template' => $template)), array('cache' …
28 $twig->addExtension(new Twig_Extension_Debug());
29 $twig->addTokenParser(new SimpleTokenParser($tag, $grammar));
33 $template = $twig->loadTemplate('template');
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/embed/
H A Dwith_extends.test4 {% extends "base.twig" %}
14 {% embed "foo.twig" %}
22 --TEMPLATE(base.twig)--
31 --TEMPLATE(foo.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/
H A Dparent_block.test4 {% use 'file2.html.twig' with foobar as base_base_foobar %}
9 --TEMPLATE(file2.html.twig)--
10 {% use 'file1.html.twig' with foobar as base_foobar %}
15 --TEMPLATE(file1.html.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/ext/twig/
H A Dconfig.w323 ARG_ENABLE("twig", "Twig support", "no");
7 EXTENSION('twig', 'twig.c');
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/
H A Dextends_as_array.test4 {% extends ["foo.twig", "bar.twig"] %}
5 --TEMPLATE(bar.twig)--
H A Dtemplate_instance.test9 --TEMPLATE(foo.twig)--
12 return ['foo' => $twig->load('foo.twig')]
H A Dparent_as_template_wrapper.test7 --TEMPLATE(foo.twig)--
10 return ['foo' => $twig->load('foo.twig')]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/
H A Dmissing.test4 {{ include("foo.twig") }}
8 Twig\Error\LoaderError: Template "foo.twig" is not defined in "index.twig" at line 2.
H A Dtemplate_instance.test5 --TEMPLATE(foo.twig)--
8 return ['foo' => $twig->load('foo.twig')]
H A Dwith_variables.test4 {{ include("foo.twig", {'foo': 'bar'}) }}
5 {{- include("foo.twig", vars) }}
6 --TEMPLATE(foo.twig)--
H A Dsandbox_disabling_ignore_missing.test4 {{ include("unknown.twig", sandboxed = true, ignore_missing = true) }}
5 {{ include("bar.twig") }}
6 --TEMPLATE(bar.twig)--
H A Dsandbox.test4 {{ include("foo.twig", sandboxed = true) }}
5 --TEMPLATE(foo.twig)--
13 Twig\Sandbox\SecurityNotAllowedFilterError: Filter "e" is not allowed in "foo.twig" at line 4.
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/
H A Dmissing.test4 {% include "foo.twig" %}
8 Twig\Error\LoaderError: Template "foo.twig" is not defined in "index.twig" at line 2.
H A Dtemplate_instance.test5 --TEMPLATE(foo.twig)--
8 return ['foo' => $twig->load('foo.twig')]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/
H A Dfrom.test4 {% include "included.twig" %}
5 {% from "included.twig" import foobar %}
7 --TEMPLATE(included.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/doc/
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 …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/
H A Dnot_valid1.test5 {%- include "foo.twig" %}
8 --TEMPLATE(foo.twig)--
11 Twig\Error\SyntaxError: Only "include" tags are allowed within a "sandbox" section in "index.twig" …
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Node/
H A DModuleTest.php45 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
114 , $twig, true];
191 , $twig, true];
202 …$twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['debug'…
264 , $twig, true];
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Util/
H A DDeprecationCollectorTest.php23 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
24 $twig->addFunction(new TwigFunction('deprec', [$this, 'deprec'], ['deprecated' => true]));
26 $collector = new DeprecationCollector($twig);
/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' %}
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/
H A Dfrom_with_reserved_name.test4 {% from 'forms.twig' import templateName %}
5 --TEMPLATE(forms.twig)--
9 …: "templateName" cannot be an imported macro as it is a reserved keyword in "index.twig" at line 2.
H A Dimport_with_reserved_nam.test4 {% import 'forms.twig' as macros %}
7 --TEMPLATE(forms.twig)--
11 …taxError: "parent" cannot be called as macro as it is a reserved keyword in "index.twig" at line 4.
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/
H A Dsyntax_error_in_reused_template.test4 {% use 'foo.twig' %}
5 --TEMPLATE(foo.twig)--
10 …expected token "operator" of value "=" ("end of statement block" expected) in "foo.twig" at line 3.
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
H A DParserTest.php132 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), [
136 $twig->addTokenParser(new TestTokenParser());
138 $parser = new Parser($twig);
155 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), [
160 $twig->parse($twig->tokenize(new Source(<<<EOF
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/
H A Dblock_without_name.test4 {% extends 'base.twig' %}
6 --TEMPLATE(base.twig)--
12 Twig\Error\SyntaxError: The "block" function takes one argument (the block name) in "base.twig" at …

12345678