[Templates] Re: TT in Python

Ash Berlin ash_cpan@firemirror.com
Wed, 11 Apr 2007 20:12:38 +0100


Darren Chamberlain wrote:
> On 4/10/07, Benj. Mako Hill <mako@debian.org> wrote:
>> I may help out a little bit. I would probably use it. I like TT2 and
>> maintain the Debian package but am doing most of my work in Python these
>> days.
>
> If this is going to happen, we should bug Andy about getting it into
> the canonical SVN repository.
>
> Also, as I mentioned previously, I'm concerned about keeping
> consistency between the Perl version and other versions, and getting
> the tests shared between implementations will go a long way toward
> this.  Currently, the tests all use Template::Test, which reads test
> templates, data, and expected results out of the __DATA__ section of
> each .t file.  I'd like to see these same test files used by the
> Python implementation, although I don't know how we could do that just
> yet.

On a similar vein - I am currently writing/toying with writing TT in 
(Server-side) javascript for zimki - and I also plan to use the same set 
of tests. The problem lies in the different config options that some 
tests (can?) have, and how to get this. I suspect things might be easier 
if the config and tests were moved into some easier format to parse.

Oh and on the subject of tests, how about using Test::More or something 
similar? Pleeease?

Cheers
Ash