[Koha-devel] Letters.pm

Chris Cormack chris at bigballofwax.co.nz
Mon Jul 27 20:45:17 CEST 2009


2009/7/28 Galen Charlton <galen.charlton at liblime.com>:
> Hi Colin,
>
> On Mon, Jul 27, 2009 at 10:14 AM, Colin
> Campbell<colin.campbell at ptfs-europe.com> wrote:
>> I've been looking at C4/Letters.pm as the templating fails to generate
>> useful output for claimissues. I can certainly get it to work with some
>> code changes but I started wondering if a better use of long term effort
>> might be to replace the home grown templating with a tried and
>> tested perl module. It could use Template Toolkit for instance without
>> changing the user interface, but resulting in more maintainable code.
>> Thought I'd float that suggestion for comments.
>
> I think switching Template Toolkit would be an excellent choice for
> the messaging system - the template syntax is simple and clean, and
> (rather importantly) I can envision writing an upgrade path for the
> current templates to TT versions of them.
>
I agree, I think that we may end switching all our templates to TT
eventually, starting with the ones that are homegrown seems the
perfect place.

I did start on converting one template to use TT and started a module
that may be some use
http://git.workbuffer.org/cgi-bin/gitweb.cgi?p=koha.git;a=tree;f=lib/Koha;hb=refs/heads/template

Feel free to use anything from there that is useful

Chris



More information about the Koha-devel mailing list