Home
last modified time | relevance | path

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

12345678910>>...26

/plugin/findologicxmlexport/vendor/twig/twig/doc/
Ddeprecated.rst4 This document lists all deprecated features in Twig. Deprecated features are
6 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
17 As of Twig 2.0, macros imported in a file are not available in child templates
24 * As of Twig 1.x, the token parser broker sub-system is deprecated. The
30 * As of Twig 1.27, ``\Twig\Parser::getFilename()`` is deprecated. From a token
33 * As of Twig 1.27, ``\Twig\Parser::getEnvironment()`` is deprecated.
38 * As of Twig 1.x, the ability to remove an extension is deprecated and the
39 ``\Twig\Environment::removeExtension()`` method will be removed in 2.0.
41 * As of Twig 1.23, the ``\Twig\Extension\ExtensionInterface::initRuntime()`` method is
[all …]
Dinternals.rst1 Twig Internals
4 Twig is very extensible and you can easily hack it. Keep in mind that you
7 useful for people who want to understand how Twig works under the hood.
9 How does Twig work?
12 The rendering of a Twig template can be summarized into four key steps:
30 an instance of ``\Twig\Token``, and the stream is an instance of
31 ``\Twig\TokenStream``). The default lexer recognizes 13 different token types:
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 (``{{ }}…
35 * ``\Twig\Token::TEXT_TYPE``: A text outside an expression;
[all …]
Dapi.rst1 Twig for Developers
4 This chapter describes the API to Twig and not the template language. It will
6 the application and not those who are creating Twig templates.
11 Twig uses a central object called the **environment** (of class
12 ``\Twig\Environment``). Instances of this class are used to store the
16 Most applications will create one ``\Twig\Environment`` object on application
21 The simplest way to configure Twig to load templates for your application
24 require_once '/path/to/lib/Twig/Autoloader.php';
27 $loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
28 $twig = new \Twig\Environment($loader, [
[all …]
Dintro.rst4 This is the documentation for Twig, the flexible, fast, and secure template
8 Smarty, Django, or Jinja, you should feel right at home with Twig. It's both
14 * *Fast*: Twig compiles templates down to plain optimized PHP code. The
17 * *Secure*: Twig has a sandbox mode to evaluate untrusted template code. This
18 allows Twig to be used as a template language for applications where users
21 * *Flexible*: Twig is powered by a flexible lexer and parser. This allows the
24 Twig is used by many Open-Source projects like Symfony, Drupal8, eZPublish,
31 Twig needs at least **PHP 5.2.7** to run. As of 1.34, the minimum requirement
37 The recommended way to install Twig is via Composer:
47 the Twig C extension.
[all …]
Dadvanced.rst1 Extending Twig
6 This section describes how to extend Twig as of **Twig 1.12**. If you are
10 Twig can be extended in many ways; you can add extra tags, filters, tests,
16 The first section of this chapter describes how to extend Twig easily. If
23 When extending Twig without creating an extension, Twig won't be able to
28 Before extending Twig, you must understand the differences between all the
31 First, remember that Twig has two main language constructs:
37 To understand why Twig exposes so many extension points, let's see how to
59 the most complex extension point of Twig.
97 Keep in mind the following when you want to extend Twig:
[all …]
Drecipes.rst10 This works as of Twig 1.21.
23 $deprecations = new \Twig\Util\DeprecationCollector($twig);
35 ``\Twig\Util\TemplateDirIterator``).
37 However, this code won't find all deprecations (like using deprecated some Twig
66 and sometimes decorated with a layout. As Twig layout template names can be
106 * *Replacement*: If you use the filesystem loader, Twig loads the first
134 Of course, this will not work as Twig will always load the template from
158 Twig allows some syntax customization for the block delimiters. It's not
164 $twig = new \Twig\Environment();
166 $lexer = new \Twig\Lexer($twig, [
[all …]
Dadvanced_legacy.rst1 Extending Twig
6 This section describes how to extends Twig for versions **older than
10 Twig can be extended in many ways; you can add extra tags, filters, tests,
16 The first section of this chapter describes how to extend Twig easily. If
23 When extending Twig by calling methods on the Twig environment instance,
24 Twig won't be able to recompile your templates when the PHP code is
29 Before extending Twig, you must understand the differences between all the
32 First, remember that Twig has two main language constructs:
38 To understand why Twig exposes so many extension points, let's see how to
60 the most complex extension point of Twig.
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/Profiler/NodeVisitor/
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/
DSandboxNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\CheckSecurityNode;
16 use Twig\Node\CheckToStringNode;
17 use Twig\Node\Expression\Binary\ConcatBinary;
18 use Twig\Node\Expression\Binary\RangeBinary;
19 use Twig\Node\Expression\FilterExpression;
20 use Twig\Node\Expression\FunctionExpression;
21 use Twig\Node\Expression\GetAttrExpression;
22 use Twig\Node\Expression\NameExpression;
[all …]
DOptimizerNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\BlockReferenceNode;
16 use Twig\Node\BodyNode;
17 use Twig\Node\Expression\AbstractExpression;
18 use Twig\Node\Expression\BlockReferenceExpression;
19 use Twig\Node\Expression\ConstantExpression;
20 use Twig\Node\Expression\FilterExpression;
21 use Twig\Node\Expression\FunctionExpression;
22 use Twig\Node\Expression\GetAttrExpression;
[all …]
DSafeAnalysisNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\Expression\BlockReferenceExpression;
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;
[all …]
DEscaperNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\AutoEscapeNode;
16 use Twig\Node\BlockNode;
17 use Twig\Node\BlockReferenceNode;
18 use Twig\Node\Expression\ConstantExpression;
19 use Twig\Node\Expression\FilterExpression;
20 use Twig\Node\ImportNode;
21 use Twig\Node\ModuleNode;
22 use Twig\Node\Node;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/doc/filters/
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/
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/
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/
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/
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 …]
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;
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;
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/
DIntegrationTest.php12 use Twig\Extension\AbstractExtension;
13 use Twig\Extension\DebugExtension;
14 use Twig\Extension\SandboxExtension;
15 use Twig\Extension\StringLoaderExtension;
16 use Twig\Node\Expression\ConstantExpression;
17 use Twig\Node\PrintNode;
18 use Twig\Sandbox\SecurityPolicy;
19 use Twig\Test\IntegrationTestCase;
20 use Twig\Token;
21 use Twig\TokenParser\AbstractTokenParser;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/
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/
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/
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;
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