class Twig_TokenParser_Use extends Twig_TokenParser
Imports blocks defined in another template into the current template.
<pre>
{% extends "base.html" %}
{% use "blocks.html" %}
{% block title %}{% endblock %}
{% block content %}{% endblock %}
</pre>
Methods
|
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser |
from Twig_TokenParser | |
| Twig_NodeInterface |
parse(Twig_Token $token)
Parses a token and returns a node. |
|
| string |
getTag()
Gets the tag name associated with this token parser. |
Details
in Twig_TokenParser at line 30
public
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser
at line 35
public Twig_NodeInterface
parse(Twig_Token $token)
Parses a token and returns a node.
at line 80
public string
getTag()
Gets the tag name associated with this token parser.