Home
last modified time | relevance | path

Searched refs:Twig (Results 1 – 25 of 626) sorted by relevance

12345678910>>...26

/plugin/findologicxmlexport/vendor/twig/twig/doc/
H A Ddeprecated.rst6 feature that was deprecated in Twig 1.x is removed in Twig 2.0).
11 As of Twig 1.21, Twig generates deprecation notices when a template uses
33 * As of Twig 1.27, ``\Twig\Parser::getEnvironment()`` is deprecated.
75 removed in Twig 3.x (use ``Twig_Filter`` instead). In Twig 2.x,
109 removed in Twig 3.x (use ``Twig_Test`` instead). In Twig 2.x,
129 Twig 2.x.
134 * As of Twig 1.27, the ``\Twig\Node\Node::getFilename()/\Twig\Node\Node::getLine()``
197 * As of Twig 1.x, ``\Twig\Environment::clearTemplateCache()``,
205 * As of Twig 1.x, ``\Twig\Template::getEnvironment()`` and
212 * As of Twig 1.27, ``\Twig\Error\Error::getTemplateFile()`` and
[all …]
H A Dinternals.rst1 Twig Internals
9 How does Twig work?
33 * ``\Twig\Token::BLOCK_START_TYPE``, ``\Twig\Token::BLOCK_END_TYPE``: Delimiters for blocks (``{% %…
34 * ``\Twig\Token::VAR_START_TYPE``, ``\Twig\Token::VAR_END_TYPE``: Delimiters for variables (``{{ }}…
39 * ``\Twig\Token::OPERATOR_TYPE``: An operator;
41 * ``\Twig\Token::INTERPOLATION_START_TYPE``, ``\Twig\Token::INTERPOLATION_END_TYPE`` (as of Twig 1.…
42 * ``\Twig\Token::EOF_TYPE``: Ends of template.
95 \Twig\Node\ModuleNode(
96 \Twig\Node\TextNode(Hello )
97 \Twig\Node\PrintNode(
[all …]
H A Dapi.rst1 Twig for Developers
57 ``\Twig\Template`` instance.
169 ``\Twig\Loader\FilesystemLoader``
224 ``\Twig\Loader\ArrayLoader``
248 ``\Twig\Loader\ChainLoader``
323 As of Twig 1.11.0, you can also implement ``\Twig\Loader\ExistsLoaderInterface``
329 Twig extensions are packages that add new features to Twig. Using an
344 * *Twig_Extension_Profiler*: Enabled the built-in Twig profiler (as of Twig
393 Twig 1.8):
424 {{ foo ? "Twig<br />" : "<br />Twig" }} {# won't be escaped #}
[all …]
H A Dintro.rst4 This is the documentation for Twig, the flexible, fast, and secure template
14 * *Fast*: Twig compiles templates down to plain optimized PHP code. The
37 The recommended way to install Twig is via Composer:
47 the Twig C extension.
52 This section gives you a brief introduction to the PHP API for Twig.
58 $loader = new \Twig\Loader\ArrayLoader([
61 $twig = new \Twig\Environment($loader);
65 Twig uses a loader (``\Twig\Loader\ArrayLoader``) to locate templates, and an
66 environment (``\Twig\Environment``) to store the configuration.
75 $twig = new \Twig\Environment($loader, [
[all …]
H A Dadvanced.rst1 Extending Twig
6 This section describes how to extend Twig as of **Twig 1.12**. If you are
23 When extending Twig without creating an extension, Twig won't be able to
161 {{ 'Twig'|rot13 }}
344 $test = new \Twig\TwigTest(
753 to the Twig environment::
877 As of Twig 1.32, Twig comes with a PSR-11 compatible runtime loader
999 ``\Twig\Test\NodeTestCase``. Examples can be found in the Twig repository
1000 `tests/Twig/Node`_ directory.
1003 .. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Fixtures
[all …]
H A Drecipes.rst10 This works as of Twig 1.21.
35 ``\Twig\Util\TemplateDirIterator``).
164 $twig = new \Twig\Environment();
166 $lexer = new \Twig\Lexer($twig, [
178 $lexer = new \Twig\Lexer($twig, [
355 Before Twig 1.22, you should extend ``\Twig\Environment`` instead::
375 When attaching a visitor to a ``\Twig\Environment`` instance, Twig uses it to
420 …class DatabaseTwigLoader implements \Twig\Loader\LoaderInterface, \Twig\Loader\ExistsLoaderInterfa…
438 // \Twig\Loader\SourceContextLoaderInterface as of Twig 1.27
448 // \Twig\Loader\ExistsLoaderInterface as of Twig 1.11
[all …]
H A Dadvanced_legacy.rst1 Extending Twig
23 When extending Twig by calling methods on the Twig environment instance,
174 {{ "Twig"|rot13 }}
179 ``\Twig\Environment`` instance::
193 {{ "Twig"|rot13('prefix_') }}
398 ``\Twig\Environment`` instance::
773 to the Twig environment::
879 ``\Twig\Test\NodeTestCase``. Examples can be found in the Twig repository
880 `tests/Twig/Node`_ directory.
884 .. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Fixtures
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/Profiler/NodeVisitor/
H A DProfilerNodeVisitor.php12 namespace Twig\Profiler\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\BlockNode;
16 use Twig\Node\BodyNode;
17 use Twig\Node\MacroNode;
18 use Twig\Node\ModuleNode;
19 use Twig\Node\Node;
20 use Twig\NodeVisitor\AbstractNodeVisitor;
21 use Twig\Profiler\Node\EnterProfileNode;
22 use Twig\Profiler\Node\LeaveProfileNode;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/NodeVisitor/
H A DSandboxNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\CheckSecurityNode;
16 use Twig\Node\CheckToStringNode;
19 use Twig\Node\Expression\FilterExpression;
21 use Twig\Node\Expression\GetAttrExpression;
22 use Twig\Node\Expression\NameExpression;
23 use Twig\Node\ModuleNode;
24 use Twig\Node\Node;
25 use Twig\Node\PrintNode;
[all …]
H A DOptimizerNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\BlockReferenceNode;
16 use Twig\Node\BodyNode;
20 use Twig\Node\Expression\FilterExpression;
23 use Twig\Node\Expression\NameExpression;
26 use Twig\Node\ForNode;
27 use Twig\Node\IncludeNode;
28 use Twig\Node\Node;
29 use Twig\Node\PrintNode;
[all …]
H A DSafeAnalysisNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
16 use Twig\Node\Expression\ConditionalExpression;
17 use Twig\Node\Expression\ConstantExpression;
18 use Twig\Node\Expression\FilterExpression;
19 use Twig\Node\Expression\FunctionExpression;
20 use Twig\Node\Expression\GetAttrExpression;
21 use Twig\Node\Expression\MethodCallExpression;
22 use Twig\Node\Expression\NameExpression;
23 use Twig\Node\Expression\ParentExpression;
[all …]
H A DEscaperNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\AutoEscapeNode;
16 use Twig\Node\BlockNode;
17 use Twig\Node\BlockReferenceNode;
19 use Twig\Node\Expression\FilterExpression;
20 use Twig\Node\ImportNode;
21 use Twig\Node\ModuleNode;
22 use Twig\Node\Node;
23 use Twig\Node\PrintNode;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/doc/filters/
H A Dtrim.rst5 The ``side`` argument was added in Twig 1.32.
8 The ``trim`` filter was added in Twig 1.6.2.
15 {{ ' I like Twig. '|trim }}
17 {# outputs 'I like Twig.' #}
19 {{ ' I like Twig.'|trim('.') }}
21 {# outputs ' I like Twig' #}
23 {{ ' I like Twig. '|trim(side='left') }}
25 {# outputs 'I like Twig. ' #}
27 {{ ' I like Twig. '|trim(' ', 'right') }}
29 {# outputs ' I like Twig.' #}
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/Expression/Test/
H A DDefinedTest.php12 namespace Twig\Node\Expression\Test;
14 use Twig\Compiler;
15 use Twig\Error\SyntaxError;
16 use Twig\Node\Expression\ArrayExpression;
17 use Twig\Node\Expression\BlockReferenceExpression;
18 use Twig\Node\Expression\ConstantExpression;
19 use Twig\Node\Expression\FunctionExpression;
20 use Twig\Node\Expression\GetAttrExpression;
21 use Twig\Node\Expression\NameExpression;
22 use Twig\Node\Expression\TestExpression;
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/Expression/Filter/
H A DDefaultFilter.php12 namespace Twig\Node\Expression\Filter;
14 use Twig\Compiler;
15 use Twig\Node\Expression\ConditionalExpression;
16 use Twig\Node\Expression\ConstantExpression;
17 use Twig\Node\Expression\FilterExpression;
18 use Twig\Node\Expression\GetAttrExpression;
19 use Twig\Node\Expression\NameExpression;
20 use Twig\Node\Expression\Test\DefinedTest;
21 use Twig\Node\Node;
/plugin/findologicxmlexport/vendor/twig/twig/src/Extension/
H A DExtensionInterface.php12 namespace Twig\Extension;
14 use Twig\Environment;
15 use Twig\NodeVisitor\NodeVisitorInterface;
16 use Twig\TokenParser\TokenParserInterface;
17 use Twig\TwigFilter;
18 use Twig\TwigFunction;
19 use Twig\TwigTest;
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Node/
H A DModuleTest.php12 use Twig\Environment;
13 use Twig\Node\Expression\AssignNameExpression;
14 use Twig\Node\Expression\ConditionalExpression;
15 use Twig\Node\Expression\ConstantExpression;
16 use Twig\Node\ImportNode;
17 use Twig\Node\ModuleNode;
18 use Twig\Node\Node;
19 use Twig\Node\SetNode;
20 use Twig\Node\TextNode;
21 use Twig\Source;
[all …]
H A DDeprecatedTest.php12 use Twig\Environment;
13 use Twig\Node\DeprecatedNode;
14 use Twig\Node\Expression\ConstantExpression;
15 use Twig\Node\Expression\FunctionExpression;
16 use Twig\Node\IfNode;
17 use Twig\Node\Node;
18 use Twig\Test\NodeTestCase;
19 use Twig\TwigFunction;
H A DSetTest.php12 use Twig\Node\Expression\AssignNameExpression;
13 use Twig\Node\Expression\ConstantExpression;
14 use Twig\Node\Expression\NameExpression;
15 use Twig\Node\Node;
16 use Twig\Node\PrintNode;
17 use Twig\Node\SetNode;
18 use Twig\Node\TextNode;
19 use Twig\Test\NodeTestCase;
H A DMacroTest.php12 use Twig\Node\Expression\ConstantExpression;
13 use Twig\Node\Expression\NameExpression;
14 use Twig\Node\MacroNode;
15 use Twig\Node\Node;
16 use Twig\Node\TextNode;
17 use Twig\Test\NodeTestCase;
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
H A DIntegrationTest.php12 use Twig\Extension\AbstractExtension;
13 use Twig\Extension\DebugExtension;
14 use Twig\Extension\SandboxExtension;
15 use Twig\Extension\StringLoaderExtension;
17 use Twig\Node\PrintNode;
18 use Twig\Sandbox\SecurityPolicy;
19 use Twig\Test\IntegrationTestCase;
20 use Twig\Token;
22 use Twig\TwigFilter;
23 use Twig\TwigFunction;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/
H A Dtrim.test4 {{ " I like Twig. "|trim }}
7 {{ "xxxI like Twig.xxx"|trim(character_mask="x", side="left") }}
8 {{ "xxxI like Twig.xxx"|trim(side="right", character_mask="x") }}
9 {{ "xxxI like Twig.xxx"|trim("x", "right") }}
16 I like Twig.
19 I like Twig.xxx
20 xxxI like Twig.
21 xxxI like Twig.
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/Expression/
H A DNullCoalesceExpression.php12 namespace Twig\Node\Expression;
14 use Twig\Compiler;
15 use Twig\Node\Expression\Binary\AndBinary;
16 use Twig\Node\Expression\Test\DefinedTest;
17 use Twig\Node\Expression\Test\NullTest;
18 use Twig\Node\Expression\Unary\NotUnary;
19 use Twig\Node\Node;
/plugin/findologicxmlexport/vendor/twig/twig/src/TokenParser/
H A DSandboxTokenParser.php12 namespace Twig\TokenParser;
14 use Twig\Error\SyntaxError;
15 use Twig\Node\IncludeNode;
16 use Twig\Node\SandboxNode;
17 use Twig\Node\TextNode;
18 use Twig\Token;
H A DForTokenParser.php13 namespace Twig\TokenParser;
15 use Twig\Error\SyntaxError;
16 use Twig\Node\Expression\AssignNameExpression;
17 use Twig\Node\Expression\ConstantExpression;
18 use Twig\Node\Expression\GetAttrExpression;
19 use Twig\Node\Expression\NameExpression;
20 use Twig\Node\ForNode;
21 use Twig\Token;
22 use Twig\TokenStream;

12345678910>>...26