ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Imports blocks defined in another template into the current template. More...
Public Member Functions | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
Public Member Functions inherited from Twig_TokenParser | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Twig_TokenParser | |
$parser | |
Imports blocks defined in another template into the current template.
{% extends "base.html" %}
{% use "blocks.html" %}
{% block title %}{% endblock %} {% block content %}{% endblock %}
Twig_TokenParser_Use::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implements Twig_TokenParserInterface.
Twig_TokenParser_Use::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implements Twig_TokenParserInterface.
Definition at line 30 of file Use.php.
References $name, GuzzleHttp\Psr7\$stream, $template, array, Twig_Token\BLOCK_END_TYPE, Twig_Token\NAME_TYPE, and Twig_Token\PUNCTUATION_TYPE.