Is it possible to set a default value in a Template::Service PROCESS?

I've tried doing:

 [% DEFAULT template.foo = 'bar' %]

but it just gets ignored.

Do I really have to do:

  [% IF template.foo;
       SET myfoo = template.foo;
     ELSE;
       SET myfoo = 'bar';
     END;
  %]

and then use myfoo instead of template.foo? Or am I missing something
really obvious, as usual?

Thanks,

Tony
-- 
--------------------------------------------------------------------------
 Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/
         the woods are lovely, dark, and deep, but I have promises to keep
--------------------------------------------------------------------------


Reply via email to