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.
[% MACRO unescape(text)
text.replace('\r', '');
text.replace('{b}', '');
text.replace('{/b}', '');
%]
Then in my "view" template I have:
[% FOREACH
Sorry about the typo.
I think it was kinda important.
Here's is the corrected version of the error message:
"Unexpected end of directive in config template line 1-5."
-- Forwarded message --
From: Kelly Thompson <[EMAIL PROTECTED]>
Date: Sun, May 18, 2008 at 10:12 PM
Subject: H
On Sun, May 18, 2008 at 10:12:24PM -0400, 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.
>
> [% MACRO unescape(text)
> text.replace('\r', '');
> text.replace('{b}', '');
>