Commit f4ab703d by seldaek

adds support for {tif $var} alone, which acts like {optional}

git-svn-id: svn://dwoo.org/dwoo/trunk@299 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 79a654f2
......@@ -29,6 +29,10 @@ function Dwoo_Plugin_tif_compile(Dwoo_Compiler $compiler, array $rest)
}
}
if (count($rest) == 1) {
return $rest[0];
}
// fetch false result and remove the ":" if it was present
$falseResult = array_pop($rest);
......
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