class Twig_TokenParser_Block extends Twig_TokenParser
Marks a section of a template as being reusable.
<pre>
{% block head %}
<link rel="stylesheet" href="style.css" />
<title>{% block title %}{% endblock %} - My Webpage</title>
{% 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. |
|
| decideBlockEnd(Twig_Token $token) | ||
| 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 32
public Twig_NodeInterface
parse(Twig_Token $token)
Parses a token and returns a node.
at line 69
public
decideBlockEnd(Twig_Token $token)
at line 79
public string
getTag()
Gets the tag name associated with this token parser.