Home
last modified time | relevance | path

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

12345678

/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
H A DEnvironmentTest.php99 $twig->getGlobals();
107 $twig->getGlobals();
108 $twig->load('index');
116 $twig->getGlobals();
117 $twig->getFunctions();
126 $twig->getGlobals();
127 $twig->getFunctions();
128 $twig->load('index');
134 $twig->getGlobals();
201 $twig = $this
[all …]
H A DTemplateWrapperTest.php19 $twig = new Environment(new ArrayLoader([
27 $wrapper = $twig->load('index');
32 $wrapper = $twig->load('index_with_use');
37 $wrapper = $twig->load('index_with_extends');
45 $twig = new Environment(new ArrayLoader([
48 $twig->addGlobal('bar', 'BAR');
50 $wrapper = $twig->load('index');
56 $twig = new Environment(new ArrayLoader([
59 $twig->addGlobal('bar', 'BAR');
61 $wrapper = $twig->load('index');
H A DErrorTest.php51 … $twig = new Environment($loader, ['strict_variables' => true, 'debug' => true, 'cache' => false]);
53 $template = $twig->load('index.html');
79 … $twig = new Environment($loader, ['strict_variables' => true, 'debug' => true, 'cache' => false]);
81 $template = $twig->load('index.html');
96 … $twig = new Environment($loader, ['strict_variables' => true, 'debug' => true, 'cache' => false]);
98 $template = $twig->load('index.html');
115 … $twig = new Environment($loader, ['strict_variables' => true, 'debug' => true, 'cache' => false]);
117 $template = $twig->load('index.html');
137 … $twig = new Environment($loader, ['strict_variables' => true, 'debug' => true, 'cache' => false]);
139 $template = $twig->load('index');
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Extension/
H A DSandboxTest.php55 $twig->load('1_child')->render([]);
66 $twig = $this->getEnvironment(true, [], self::$templates);
68 $twig->load('1_basic1')->render(self::$params);
81 $twig->load('1_basic2')->render(self::$params);
93 $twig->load('1_basic3')->render(self::$params);
105 $twig->load('1_basic4')->render(self::$params);
121 $twig->load('index')->render(self::$params);
191 $twig->load('1_basic7')->render(self::$params);
278 $twig->load('3_basic')->render(self::$params);
306 $twig->load('1_include')->render(self::$params);
[all …]
H A DCoreTest.php109 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
110 $twig->setCharset('ISO-8859-1');
114 $rand = twig_random($twig, $text);
125 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
126 $twig->setCharset('ISO-8859-1');
139 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
142 $this->assertSame($expected, twig_escape_filter($twig, $string, $strategy));
167 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
168 $this->assertSame($expected, twig_first($twig, $input));
190 $this->assertSame($expected, twig_last($twig, $input));
[all …]
/plugin/dirtylittlehelper/mermaid/editor/docs/
H A D65.65.js1twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*…
/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)
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/
H A Dmultiple_dynamic.test5 {{ include('parent.twig') }}
6 {{ include('parent.twig') }}
8 {{ include('parent.twig') }}
9 --TEMPLATE(parent.twig)--
10 {% extends foo~'_parent.twig' %}{% block content %}{{ parent() }} parent{% endblock %}
11 --TEMPLATE(1_parent.twig)--
13 --TEMPLATE(2_parent.twig)--
H A Duse.test4 {% extends "parent.twig" %}
6 {% use "use1.twig" %}
7 {% use "use2.twig" %}
25 --TEMPLATE(parent.twig)--
30 --TEMPLATE(use1.twig)--
34 --TEMPLATE(use2.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/
H A Dblock_with_template.test4 {{ block('foo', 'included.twig') }}
7 {% set output = block('foo', 'included.twig') %}
10 --TEMPLATE(included.twig)--
14 'included_loaded' => $twig->load('included.twig'),
15 'included_loaded_internal' => $twig->load('included.twig'),
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/
H A Donly.test4 {% include "foo.twig" %}
5 {% include "foo.twig" only %}
6 {% include "foo.twig" with vars1 %}
7 {% include "foo.twig" with vars1 only %}
8 {% include "foo.twig" with vars2 %}
9 {% include "foo.twig" with vars2 only %}
10 --TEMPLATE(foo.twig)--
H A Dtemplates_as_array.test4 {% include ["foo.twig", "bar.twig"] %}
5 {% include ["bar.twig", "foo.twig"] %}
6 --TEMPLATE(foo.twig)--
H A Dignore_missing.test4 {% include ["foo.twig", "bar.twig"] ignore missing %}
5 {% include "foo.twig" ignore missing %}
6 {% include "foo.twig" ignore missing with {} %}
7 {% include "foo.twig" ignore missing with {} only %}
H A Dmissing_nested.test4 {% extends "base.twig" %}
9 --TEMPLATE(base.twig)--
11 {% include "foo.twig" %}
16 Twig\Error\LoaderError: Template "foo.twig" is not defined in "base.twig" at line 3.
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/
H A Dname.test5 {{ include('index.js.twig') -}}
6 {{ include('index.html.twig') -}}
7 {{ include('index.txt.twig') -}}
8 --TEMPLATE(index.js.twig)--
10 --TEMPLATE(index.html.twig)--
12 --TEMPLATE(index.txt.twig)--
H A Dblock.test4 {{ include('unrelated.txt.twig') -}}
5 {{ include('template.html.twig') -}}
6 --TEMPLATE(unrelated.txt.twig)--
8 --TEMPLATE(template.html.twig)--
9 {% extends 'parent.html.twig' %}
13 --TEMPLATE(parent.html.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tests/
H A Ddefined_for_blocks_with_template.test4 {{ block('foo', 'included.twig') is defined ? 'ok' : 'ko' }}
7 --TEMPLATE(included.twig)--
11 'included_loaded' => $twig->load('included.twig'),
12 'included_loaded_internal' => $twig->load('included.twig'),
/plugin/findologicxmlexport/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);
186 $p = new \ReflectionProperty($twig, 'templateClassPrefix');
191 $template = $twig->load('index.twig');
232 $loader = $twig->getLoader();
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/
H A Dtemplates_as_array.test4 {{ include(["foo.twig", "bar.twig"]) }}
5 {{- include(["bar.twig", "foo.twig"]) }}
6 --TEMPLATE(foo.twig)--
H A Dignore_missing.test4 {{ include(["foo.twig", "bar.twig"], ignore_missing = true) }}
5 {{ include("foo.twig", ignore_missing = true) }}
6 {{ include("foo.twig", ignore_missing = true, variables = {}) }}
7 {{ include("foo.twig", ignore_missing = true, variables = {}, with_context = true) }}
H A Dmissing_nested.test4 {% extends "base.twig" %}
9 --TEMPLATE(base.twig)--
11 {{ include("foo.twig") }}
16 Twig\Error\LoaderError: Template "foo.twig" is not defined in "base.twig" at line 3.
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/
H A DTwigFormulaLoader.php25 private $twig; variable in Assetic\\Extension\\Twig\\TwigFormulaLoader
28 public function __construct(\Twig_Environment $twig, LoggerInterface $logger = null) argument
30 $this->twig = $twig;
37 … $tokens = $this->twig->tokenize(new \Twig_Source($resource->getContent(), (string) $resource));
38 $nodes = $this->twig->parse($tokens);
78 $arguments[] = eval('return '.$this->twig->compile($argument).';');
81 …$invoker = $this->twig->getExtension('Assetic\Extension\Twig\AsseticExtension')->getFilterInvoker(…
/plugin/findologicxmlexport/vendor/twig/twig/src/Util/
H A DDeprecationCollector.php25 private $twig; variable in Twig\\Util\\DeprecationCollector
28 public function __construct(Environment $twig) argument
30 $this->twig = $twig;
67 $this->twig->parse($this->twig->tokenize(new Source($contents, $name)));
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/
H A Dsimple.test5 {%- include "foo.twig" %}
9 {%- include "foo.twig" %}
10 {%- include "foo.twig" %}
13 {%- sandbox %}{% include "foo.twig" %}{% endsandbox %}
14 --TEMPLATE(foo.twig)--
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/
H A Dundefined_template_in_child_template.test4 {% extends 'base.twig' %}
7 {{ include('include.twig') }}
9 --TEMPLATE(base.twig)--
15 Twig\Error\LoaderError: Template "include.twig" is not defined in "index.twig" at line 5.

12345678