Re: [Templates] Hello all

2008-05-19 Thread Larry Leszczynski
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;

Re: [Templates] only getting one error in a loop

2008-05-19 Thread R. Hicks
C. Chad Wallace wrote: At 10:39 AM on 15 May 2008, Robert Hicks wrote: C. Chad Wallace wrote: At 7:05 PM on 14 May 2008, Robert Hicks wrote: Because I am building 2 types of emails...I have 2 $template-process commands and because it is in a loop and I have 5 users, I get five error

Re: [Templates] Hello all

2008-05-19 Thread Kelly Thompson
I fixed the problem by stringing the replace statements (which I didn't know I could do, but just seemed like the Right thing to do) ie: [% MACRO unescape(text) text.replace('{b}', 'b').replace('{/b}', '/b').replace('{i}', 'i').replace('{/i}', '/i').etc.. %] As you can see I am creating a small