In Perl, using HTML::Template, I can specify a default value in case the template variable remains unassigned, like so:

  <h1><tmpl_var name="greeting" default="hello"></h1>

How can I emulate this in VTL, so that if there's no value for "greeting" in the context it displays "hello" instead of just "$greeting"...

  <h1>$greeting</h1>

Many TIA,
Marco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to