Home
last modified time | relevance | path

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

12345678

/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
DEnvironmentTest.php73 $twig = new Environment($loader, [
79 …$this->assertEquals('foo&lt;br/ &gt; foo&lt;br/ &gt;', $twig->render('html', ['foo' => 'foo<br/ >'…
80 …$this->assertEquals('foo\u003Cbr\/\u0020\u003E foo\u003Cbr\/\u0020\u003E', $twig->render('js', ['b…
97 $twig = new Environment($loader);
98 $twig->addGlobal('foo', 'foo');
99 $twig->getGlobals();
100 $twig->addGlobal('foo', 'bar');
101 $globals = $twig->getGlobals();
105 $twig = new Environment($loader);
106 $twig->addGlobal('foo', 'foo');
[all …]
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');
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/
DSandboxTest.php54 $twig = $this->getEnvironment(true, [], self::$templates, ['block']);
55 $twig->load('1_child')->render([]);
60 $twig = $this->getEnvironment(false, [], self::$templates);
61 …$this->assertEquals('FOO', $twig->load('1_basic')->render(self::$params), 'Sandbox does nothing if…
66 $twig = $this->getEnvironment(true, [], self::$templates);
68 $twig->load('1_basic1')->render(self::$params);
79 $twig = $this->getEnvironment(true, [], self::$templates);
81 $twig->load('1_basic2')->render(self::$params);
91 $twig = $this->getEnvironment(true, [], self::$templates);
93 $twig->load('1_basic3')->render(self::$params);
[all …]
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');
129 $output = twig_convert_encoding(twig_reverse_filter($twig, $input), 'UTF-8', 'ISO-8859-1');
139 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
140 … $twig->getExtension('\Twig\Extension\CoreExtension')->setEscaper('foo', 'foo_escaper_for_test');
142 $this->assertSame($expected, twig_escape_filter($twig, $string, $strategy));
167 $twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
[all …]
/plugin/dirtylittlehelper/mermaid/editor/docs/
D65.65.js1twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*…
/plugin/findologicxmlexport/vendor/twig/twig/ext/twig/
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/
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)--
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/
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/
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)--
Dtemplates_as_array.test4 {% include ["foo.twig", "bar.twig"] %}
5 {% include ["bar.twig", "foo.twig"] %}
6 --TEMPLATE(foo.twig)--
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 %}
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/src/Test/
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');
188 … $p->setValue($twig, '__TwigTemplate_'.hash('sha256', uniqid(mt_rand(), true), false).'_');
191 $template = $twig->load('index.twig');
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/
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)--
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/
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/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/
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/test/Twig/Tests/Fixtures/functions/include/
Dtemplates_as_array.test4 {{ include(["foo.twig", "bar.twig"]) }}
5 {{- include(["bar.twig", "foo.twig"]) }}
6 --TEMPLATE(foo.twig)--
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) }}
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/src/Util/
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/
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/
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