I've been porting
vBMS to vB3 and am working on the navbar. Previously it took me a ton of regular expressions and multiple templates, but check it out:
Code:
<if condition="$iscurrentscript"><b><else /><a href="$filename?$session[sessionurl]"></if>
$title<if condition="$iscurrentscript"></b><else /></a></if>
<if condition="$isinbox and $unreadcount > 0">
(<span style="color:{vbms_unreadtext}">$unreadcount</span>)
</if>
<if condition="!$islast">
{vbms_navbar_delimiter}
</if>
One template, and it all works flawlessly. It sure must have saved the developers a ton of time when making templates...
Only problem is that it doesn't let you use custom functions. You can only use built-in ones like empty(), isset(), etc.