On Tue, Mar 15, 2005 at 02:24:14PM -0700, Cahill, Earl wrote:
> Wow, it even uses '...' by default.  I am not a huge fan of filters though,
> just cause of the need of an [% END %].o

Then you want to embed the filter in the line of your variable.

[% MyText FILTER truncate(25) %]  # MyText is your variable holding text

Or the more compact 
[% MyText | truncate(25) %]

Of course, that won't help you if your text is not in a variable.

-- 
Brett Sanger/Swiftone
[EMAIL PROTECTED]   

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

Reply via email to