From ecb0223b97848beb7aa5841934de45b9c97bfd9f Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 6 Oct 2013 18:58:13 +0300 Subject: [PATCH] Shortcuts: {openbrace} == {literal}{{/literal}, {closebrace} == {literal}}{/literal}. --- lib/compiler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/compiler.php b/lib/compiler.php index 654e7e7..47dac3c 100644 --- a/lib/compiler.php +++ b/lib/compiler.php @@ -294,6 +294,12 @@ class IPF_Template_Compiler case '/literal': trigger_error('Start tag of a block missing: literal', E_USER_ERROR); break; + case 'openbrace': + $res = '?>{}_extendBlocks[$args])) $res = '?>'.$this->_extendBlocks[$args].'