On Wed, Jul 10, 2002 at 01:48:35PM +0100, Andy Wardley wrote:
> How about this, taken from an example very close to your own:
> [% FOREACH book = books.sort_by('author.name.last') -%]
> [% book.title %] by [% book.author.name.first %] [% book.author.name.last %]
> [% END %]

On Wed, Jul 10, 2002 at 01:48:35PM +0100, Andy Wardley wrote:
> [% FOREACH book = books.sort_by('author.name.last') -%]
> [% book.title %] by [% book.author.name.first %] [%
> book.author.name.last %]
> [% END %]

This is excellent!

Thanks a bunch.

> The v3 stash has been redesigned to make it much easier for the 
> stash to be re-used by virtual methods, plugins, etc., for performing
> dotop functionality and more.   But that's for another message...

I look forward to this message ... ;)

> Oh, and check out Template::Plugin::Filter for an easy way to define
> this sort method in a plugin.  Then you can load it, and have it install
> the vmethod, just by USEing the plugin.

Shall do.

Thanks,

Tony


Reply via email to