Merge pull request #94 from jeffturcotte/master

Added getCurrentTokenTree to get a token's tree within a helper
This commit is contained in:
Fzerorubigd 2014-11-13 21:48:06 +03:30
commit 86a388058f

View File

@ -128,6 +128,18 @@ class Template
return $topStack[2];
}
/**
* Get the current token's tree
*
* @return array
*/
public function getCurrentTokenTree()
{
$topStack = end($this->_stack);
return $topStack[1];
}
/**
* Render top tree
*