[Templates] substr vmethod

Garrett, Philip (MAN-Corporate) Philip.Garrett@manheim.com
Wed, 9 Aug 2006 11:19:40 -0400


Jonathan Mangin wrote:
> Hi all,
>=20
> I thought I'd seen someone mention a substr vmethod
> on this list.  I can't find anything about substrings
> in the manual.
>=20
> I need to display the first 34 chars. of a template
> variable.  Is there some way to do that?

Hackish, but should work:

  [% var.chunk(34).0 %]

Philip