I asked for a way to use underscore as a hash key Andy replied: > No, not really. and then proceeded to give a perfect way to do it :)
It didn't work when I tried it (no such context method/member: define_vmethod) which I guess is because I'm using an old version of TT. So I tried to upgrade to 2.12 and got one failure:
MATCH FAILED
input: [[% USE autoformat %]
[% FILTER poetry = autoformat(left => 20, right => 40) %]
Be not afeard. The isle is full of noises, sounds and sweet
airs that give delight but hurt not.
[% END %]
[% FILTER poetry %]
I cried to dream again.
[% END %]
]
expect: [ Be not afeard. The
isle is full of
noises, sounds and
sweet airs that give
delight but hurt not.
I cried to dream
again.]
output: [ Be not afeard. The
isle is full of
noises, sounds and
sweet airs that give
delight but hurt not. I cried to dream
again.]
FAILED 21: - template text 9 did not match expected
not ok 21 - template text 9 did not match expectedAny thoughts?
Cheers, Dave
PS I didn't see the time problem, but I'm in the UK.
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
