RE: [Templates] a little text formatting

[prev] [thread] [next] [Date index for 2005/03/15]

From: Cahill, Earl
Subject: RE: [Templates] a little text formatting
Date: 21:24 on 15 Mar 2005
Wow, it even uses '...' by default.  I am not a huge fan of filters though,
just cause of the need of an [% END %].

Thanks,
Earl

> -----Original Message-----
> From: Larry Leszczynski [mailto:larryl@xxxxxxxxx.xxx]
> Sent: Tuesday, March 15, 2005 2:18 PM
> To: Cahill, Earl
> Cc: templates@xxxxxxxxxxxxxxxx.xxx
> Subject: Re: [Templates] a little text formatting
> 
> 
> On Tue, 15 Mar 2005, Cahill, Earl wrote:
> 
> > A start with a line, say
> >
> > This line is really too long.
> >
> > A length, say 25, and suffix, say '...'.  I would like to be able to do
> > something like this
> >
> > [% my_truncate(line, 25, '...') %]
> >
> > And end up with
> >
> > This line is really t...
> 
> 
> Um, maybe you could use "truncate()"?
> 
> http://template-
> toolkit.org/docs/default/Manual/Filters.html#truncate_length_
> 
> :-)
> 


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] a little text formatting
Cahill, Earl 21:09 on 15 Mar 2005

Re: [Templates] a little text formatting
Darren Chamberlain 21:16 on 15 Mar 2005

Re: [Templates] a little text formatting
Larry Leszczynski 21:17 on 15 Mar 2005

RE: [Templates] a little text formatting
Cahill, Earl 21:24 on 15 Mar 2005

Re: [Templates] a little text formatting
Darren Chamberlain 21:23 on 15 Mar 2005

Re: [Templates] a little text formatting
Brett Sanger 21:29 on 15 Mar 2005

Re: [Templates] a little text formatting
Darren Chamberlain 21:28 on 15 Mar 2005

RE: [Templates] a little text formatting
Cahill, Earl 21:42 on 15 Mar 2005

RE: [Templates] a little text formatting
Jason Gottshall 22:38 on 15 Mar 2005

Generated at 16:59 on 18 Mar 2005 by mariachi v0.52