Commit 28b6be1f by seldaek

smarty_compat handling for sectionelse

git-svn-id: svn://dwoo.org/dwoo/trunk@209 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 2fd2c90f
......@@ -37,6 +37,7 @@ class Dwoo_Processor_smarty_compat extends Dwoo_Processor
'/'.$rl.'\s*php\s*'.$rr.'/',
'/'.$rl.'\s*\/php\s*'.$rr.'/',
'/\|(@?)strip/',
'/'.$rl.'\s*sectionelse\s*'.$rr.'/',
);
$dwoo = array
......@@ -49,6 +50,7 @@ class Dwoo_Processor_smarty_compat extends Dwoo_Processor
'<?php ',
' ?>',
'|$1whitespace',
$l.'else'.$r,
);
if (preg_match('{\|@([a-z][a-z0-9_]*)}i', $input, $matches)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment