Please unsubscribe.

Vincent Wright
Recruitment/Business Development Consultant
CAREERS of Connecticut/Wright Enterprises
806 Main Street #5B
Manchester, CT 06040
860-643-2799
[EMAIL PROTECTED]
http://groups.yahoo.com/group/CAREERSofConnecticut
Subscribe:  [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of darren chamberlain
Sent: Thursday, February 26, 2004 12:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [Templates] chaining filters shortcut

* jamie.echlin at ubs.com <[EMAIL PROTECTED]> [2004/02/26 17:38]:
> Hi,
>
> Is it possible to create a new filter that is a chain of existing
> filters from within TT, and not perl? I often find myself using
>  | html | html_line_break | clickable
> and so on, but I would like to do:
> stdfilt = | html | html_line_break | clickable
>
> I'm sure something like that is possible but cannot find in docs...

You could do it within your template with a MACRO:

  [% MACRO stdfilt(text)
        text | html | html_line_break | clickable
  -%]

Invoke as:

  [% stdfilt(stuff) %]

(darren)

--
You are what you see.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.592 / Virus Database: 375 - Release Date: 2/18/04



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to