[Templates] Hello all

Larry Leszczynski larryl at emailplus.org
Mon May 19 17:02:11 BST 2008


Hi Kelly -

On Sun, 18 May 2008, Kelly Thompson wrote:

> I am trying to create a MACRO that will replace a lot of values 
> within a databased variable. What I have now is this in my "config" 
> template.

Your macro is multiple lines, try enclosing in a BLOCK, e.g.:

  [% MACRO unescape(text) BLOCK;
   text.replace('\r', '<br />');
   text.replace('{b}', '<b>');
   text.replace('{/b}', '</b>');
   END;
  %]

HTH,
Larry

Also just FYI, a more informative email subject (e.g. "Problem with 
MACRO definition") would be helpful to other list menbers.



More information about the templates mailing list