The Dynamic Duo of PEAR::DB and Smarty
Subject:   Default Title
Date:   2003-05-01 09:23:22
From:   anonymous2
I emailed this to jcpm before I saw the discussion at the bottom of the page, so I'll post my comments here. :P In the last example, instead of using {if} and {/if}, you can have just one TITLE tag that looks like this:

<title>website name - {$title|default:"slogan goes here"}</title>

I think that makes for much clean code. <shrug>