[Templates] Problem with single element arrays

Jess Robinson castaway@desert-island.me.uk
Tue, 21 Aug 2007 08:11:54 +0100 (BST)



On Mon, 20 Aug 2007, Andy Wardley wrote:

> Hmmm... I just noticed a comment in the section for the as-yet unreleased 
> v2.20:
>
> # ------------------------------------------------------------------------
> # Version 2.20 -
> # ------------------------------------------------------------------------
>
> * Applied a patch to Template::Stash from Jess Robinson which allows you
>   to call a list method on a single object and have it automatically
>   upgraded to a single item list.  Changed the XS Stash to do the same.
>
>  http://tt2.org/pipermail/templates/2006-November/009115.html
>
> Ah yes, I think this is what you want.  Here's the patch:
>
>  http://template-toolkit.org/svnweb/Template2/revision?rev=1088
>
> And this is the altogether more-gnarly patch I made to do the same thing for 
> the XS Stash:
>
>  http://template-toolkit.org/svnweb/Template2/revision?rev=1090
>
> Ah, OK, now I see why I'm confused.  I'm looking at the SVN version of the 
> Stash code which has been updated.  That's why it looks like it *should* work 
> from where I'm standing (and does, for me at least :-) )
>
> So the first step would be to check it out with the latest version from 
> subversion.
>
>  http://tt2.org/download/index.html#svn
>
> If that works OK then the problem's fixed and I'll push 2.20 out the door 
> RSN.
>


Please do ;)

(Then I can avoid updating SQL::Translator to skip all TT tests, which 
people keep moaning at me about.. )

Jess