\Disco\twigStyleTokenParser

Token Parser for `style` twig template tag. <a href='http://twig.sensiolabs.org/doc/advanced.html#tags'>Twig Tag Docs</a>.

Summary

Methods
Properties
Constants
parse()
getTag()
endOfTag()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

parse()

parse(\Twig_Token  $token) : \Disco\twig\StyleNode

Define how our style tag should be parsed.

Parameters

\Twig_Token $token

An instance of a \Twig_Token.

Returns

\Disco\twig\StyleNode

getTag()

getTag() : string

Define how a page tag begins. Returns `style`.

Returns

string

endOfTag()

endOfTag(\Twig_Token  $token) : string

Define how a page tag ends. Returns `endstyle`.

Parameters

\Twig_Token $token

An instance of a \Twig_Token.

Returns

string