> In the template I wanted to take the stringified class_date object
> ("2004-10-25 09:00:00") and split on the white space to get the
> individual day and hour components. My first thought was:
>
> [day, time] = schedule.class_date.split(' ');
>
> But this tried calling the split() method on the Class::Date object
> rather than the stringified version.
What about forcing a stringify like this:
[% myclassdate = "${schedule.class_date}" %]
[% [day, time] = myclassdate.split(' ') %]
Haven't tried it myself, but it might do the trick.
Jason
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates