mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Cleanaup
This commit is contained in:
parent
218efdffe6
commit
27bd06f534
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user