\Twig_TokenParser_Use
Imports blocks defined in another template into the current template.
<pre>
{% extends "base.html" %}
{% use "blocks.html" %}
{% block title %}{% endblock %}
{% block content %}{% endblock %}
</pre>
Synopsis
class Twig_TokenParser_Use
extends Twig_TokenParser
{
- // Inherited members from Twig_TokenParser
- protected Twig_Parser $parser;
- // Inherited methods from Twig_TokenParser
- public void setParser()
Hierarchy
Extends
Members
protected
- $parser — Twig_Parser
Methods
public
- getTag() — Gets the tag name associated with this token parser.
- parse() — Parses a token and returns a node.
Inherited from Twig_TokenParser
public
- setParser() — Sets the parser associated with this token parser