Class Twig_TokenParser_Use

InheritanceTwig_TokenParser_Use » Twig_TokenParser
ImplementsTwig_TokenParserInterface

Imports blocks defined in another template into the current template.

{% extends "base.html" %}

{% use "blocks.html" %}

{% block title %}{% endblock %}
{% block content %}{% endblock %}

See also http://www.twig-project.org/doc/templates.html#horizontal-reuse for details.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getTag() Twig_TokenParser_Use
parse() Twig_TokenParser_Use
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token