Home
last modified time | relevance | path

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

12345678910>>...18

/template/twigstarter/vendor/twig/twig/doc/
H A Ddeprecated.rst6 feature that was deprecated in Twig 2.x is removed in Twig 3.0).
17 deprecated since Twig 2.5.0. In Twig 3.0, it will throw a
25 ``Twig\Error\Error`` constructor is deprecated since Twig 2.6.1. Pass an
37 anyway. In Twig 3.0, it will throw a ``Twig\Error\SyntaxError`` exception.
53 * ``Twig\TwigFilter``
55 * ``Twig\TwigTest``
61 * As of Twig 2.7, the ``\Twig\Parser::isReservedMacroName()`` / ``Twig\Parser``
71 * As of Twig 2.7, the ``Twig\Environment::getBaseTemplateClass()`` and
78 * As of Twig 2.7, passing a ``Twig\Template`` instance to the
83 a ``Twig\Template`` or a ``Twig\TemplateWrapper`` instance. In Twig 3.0, this
[all …]
H A Dinternals.rst1 Twig Internals
9 How does Twig work?
35 * ``\Twig\Token::BLOCK_START_TYPE``, ``\Twig\Token::BLOCK_END_TYPE``: Delimiters for blocks (``{% %…
36 * ``\Twig\Token::VAR_START_TYPE``, ``\Twig\Token::VAR_END_TYPE``: Delimiters for variables (``{{ }}…
41 * ``\Twig\Token::OPERATOR_TYPE``: An operator;
43 * ``\Twig\Token::INTERPOLATION_START_TYPE``, ``\Twig\Token::INTERPOLATION_END_TYPE``: Delimiters fo…
44 * ``\Twig\Token::EOF_TYPE``: Ends of template.
93 \Twig\Node\ModuleNode(
94 \Twig\Node\TextNode(Hello )
95 \Twig\Node\PrintNode(
[all …]
H A Dintro.rst4 Welcome to the documentation for Twig, the flexible, fast, and secure template
12 * *Fast*: Twig compiles templates down to plain optimized PHP code. The
33 Twig 2.x needs at least **PHP 7.2.5** to run.
38 The recommended way to install Twig is via Composer:
47 This section gives you a brief introduction to the PHP API for Twig::
51 $loader = new \Twig\Loader\ArrayLoader([
54 $twig = new \Twig\Environment($loader);
58 Twig uses a loader (``\Twig\Loader\ArrayLoader``) to locate templates, and an
59 environment (``\Twig\Environment``) to store its configuration.
67 $loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
[all …]
H A Dapi.rst1 Twig for Developers
148 ``\Twig\Loader\FilesystemLoader``
197 ``\Twig\Loader\ArrayLoader``
221 ``\Twig\Loader\ChainLoader``
259 * @return \Twig\Source
306 Twig extensions are packages that add new features to Twig. Register an
313 * *Twig\Extension\CoreExtension*: Defines all the core features of Twig.
321 * *Twig\Extension\SandboxExtension*: Adds a sandbox mode to the default Twig
324 * *Twig\Extension\ProfilerExtension*: Enables the built-in Twig profiler.
404 {{ foo ? "Twig<br/>" : "<br/>Twig" }} {# won't be escaped #}
[all …]
H A Dadvanced.rst1 Extending Twig
17 When extending Twig without creating an extension, Twig won't be able to
154 {{ 'Twig'|rot13 }}
185 $filter = new \Twig\TwigFilter('rot13', function (\Twig\Environment $env, $string) {
331 use Twig\Environment;
333 use Twig\TwigTest;
711 to the Twig environment::
914 ``\Twig\Test\NodeTestCase``. Examples can be found in the Twig repository
915 `tests/Twig/Node`_ directory.
917 .. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/2.x/tests/Fixtures
[all …]
H A Drecipes.rst32 ``\Twig\Util\TemplateDirIterator``).
161 $twig = new \Twig\Environment(...);
163 $lexer = new \Twig\Lexer($twig, [
175 $lexer = new \Twig\Lexer($twig, [
182 $lexer = new \Twig\Lexer($twig, [
189 $lexer = new \Twig\Lexer($twig, [
309 } catch (\Twig\Error\SyntaxError $e) {
349 When attaching a visitor to a ``\Twig\Environment`` instance, Twig uses it to
357 public function enterNode(\Twig\Node\Node $node, \Twig\Environment $env)
443 $twig = new \Twig\Environment($loader);
[all …]
/template/twigstarter/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;
18 use Twig\Node\Expression\ConstantExpression;
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\TestExpression;
[all …]
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DSandboxNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\CheckSecurityCallNode;
16 use Twig\Node\CheckSecurityNode;
17 use Twig\Node\CheckToStringNode;
20 use Twig\Node\Expression\FilterExpression;
23 use Twig\Node\Expression\NameExpression;
24 use Twig\Node\ModuleNode;
25 use Twig\Node\Node;
26 use Twig\Node\PrintNode;
[all …]
H A DMacroAutoImportNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\Expression\AssignNameExpression;
16 use Twig\Node\Expression\ConstantExpression;
17 use Twig\Node\Expression\GetAttrExpression;
18 use Twig\Node\Expression\MethodCallExpression;
19 use Twig\Node\Expression\NameExpression;
20 use Twig\Node\ImportNode;
21 use Twig\Node\ModuleNode;
22 use Twig\Node\Node;
H A DOptimizerNodeVisitor.php12 namespace Twig\NodeVisitor;
14 use Twig\Environment;
15 use Twig\Node\BlockReferenceNode;
17 use Twig\Node\Expression\ConstantExpression;
18 use Twig\Node\Expression\FilterExpression;
21 use Twig\Node\Expression\NameExpression;
22 use Twig\Node\Expression\ParentExpression;
23 use Twig\Node\ForNode;
24 use Twig\Node\IncludeNode;
25 use Twig\Node\Node;
[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;
16 use Twig\Node\AutoEscapeNode;
17 use Twig\Node\BlockNode;
18 use Twig\Node\BlockReferenceNode;
19 use Twig\Node\DoNode;
24 use Twig\Node\ImportNode;
25 use Twig\Node\ModuleNode;
26 use Twig\Node\Node;
27 use Twig\Node\PrintNode;
[all …]
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DCoreExtension.php12 namespace Twig\Extension {
13 use Twig\ExpressionParser;
71 use Twig\TwigFilter;
72 use Twig\TwigFunction;
73 use Twig\TwigTest;
344 use Twig\Environment;
345 use Twig\Error\LoaderError;
349 use Twig\Markup;
350 use Twig\Source;
351 use Twig\Template;
[all …]
H A DExtensionInterface.php12 namespace Twig\Extension;
14 use Twig\NodeVisitor\NodeVisitorInterface;
15 use Twig\TokenParser\TokenParserInterface;
16 use Twig\TwigFilter;
17 use Twig\TwigFunction;
18 use Twig\TwigTest;
/template/twigstarter/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 …]
/template/twigstarter/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;
/template/twigstarter/vendor/twig/twig/doc/filters/
H A Dtrim.rst9 {{ ' I like Twig. '|trim }}
11 {# outputs 'I like Twig.' #}
13 {{ ' I like Twig.'|trim('.') }}
15 {# outputs ' I like Twig' #}
17 {{ ' I like Twig. '|trim(side='left') }}
19 {# outputs 'I like Twig. ' #}
21 {{ ' I like Twig. '|trim(' ', 'right') }}
23 {# outputs ' I like Twig.' #}
27 Internally, Twig uses the PHP `trim`_, `ltrim`_, and `rtrim`_ functions.
/template/twigstarter/vendor/twig/twig/src/TokenParser/
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\Node\Node;
22 use Twig\Token;
23 use Twig\TokenStream;
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 DBlockTokenParser.php13 namespace Twig\TokenParser;
15 use Twig\Error\SyntaxError;
16 use Twig\Node\BlockNode;
17 use Twig\Node\BlockReferenceNode;
18 use Twig\Node\Node;
19 use Twig\Node\PrintNode;
20 use Twig\Token;
H A DTokenParserInterface.php12 namespace Twig\TokenParser;
14 use Twig\Error\SyntaxError;
15 use Twig\Node\Node;
16 use Twig\Parser;
17 use Twig\Token;
H A DApplyTokenParser.php12 namespace Twig\TokenParser;
14 use Twig\Node\Expression\TempNameExpression;
15 use Twig\Node\Node;
16 use Twig\Node\PrintNode;
17 use Twig\Node\SetNode;
18 use Twig\Token;
H A DFilterTokenParser.php12 namespace Twig\TokenParser;
14 use Twig\Node\BlockNode;
15 use Twig\Node\Expression\BlockReferenceExpression;
16 use Twig\Node\Expression\ConstantExpression;
17 use Twig\Node\PrintNode;
18 use Twig\Token;
/template/twigstarter/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;
/template/twigstarter/vendor/twig/twig/src/
H A DParser.php13 namespace Twig; namespace
15 use Twig\Error\SyntaxError;
16 use Twig\Node\BlockNode;
17 use Twig\Node\BlockReferenceNode;
18 use Twig\Node\BodyNode;
20 use Twig\Node\MacroNode;
21 use Twig\Node\ModuleNode;
22 use Twig\Node\Node;
25 use Twig\Node\PrintNode;
26 use Twig\Node\SpacelessNode;
[all …]

12345678910>>...18