Class Twig_TokenParser_Use

InheritanceTwig_TokenParser_Use » Twig_TokenParser

Imports blocks defined in another template into the current template.

{% extends "base.html" %}

{% use "blocks.html" %}

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

See also 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 )