This commit is contained in:
Ivan Shalganov 2014-04-10 10:33:51 +04:00
parent 218efdffe6
commit 27bd06f534
1 changed files with 0 additions and 12 deletions

View File

@ -35,13 +35,6 @@ class Template extends Render
*/
const DENY_MODS = 2;
/**
* Template was extended
*/
const DYNAMIC_EXTEND = 0x1000;
const EXTENDED = 0x2000;
const DYNAMIC_BLOCK = 0x4000;
/**
* @var int shared counter
*/
@ -56,10 +49,6 @@ class Template extends Render
*/
public $blocks = array();
// public $uses = array();
// public $parents = array();
/**
* Escape outputs value
* @var bool
@ -471,7 +460,6 @@ class Template extends Render
{
if (!$this->_code) {
// evaluate template's code
var_dump($this->_getClosureSource(), $this->_getMacrosArray());
eval("\$this->_code = " . $this->_getClosureSource() . ";\n\$this->_macros = " . $this->_getMacrosArray() . ';');
if (!$this->_code) {
throw new CompileException("Fatal error while creating the template");