[Koha-devel] How to convert a HTML::Template::Pro template to Template::Toolkit

Chris Cormack chrisc at catalyst.net.nz
Sun Apr 10 22:42:34 CEST 2011


Hi All

There may be a need for people to convert a template to
template::toolkit so they can send a patch that will apply cleanly.

To do so checkout a branch based on commit
d4cd05126da3accef83144d8322fcd455d7eba9b

eg
git checkout -b convert_templates d4cd05126da3accef83144d8322fcd455d7eba9b

Now you have a branch with both sets of templates, you can then
cherry-pick your template change over.

And run 
./installer/html-template-to-template-toolkit.pl  --koharoot /path/to/the/root

This will convert all the templates, if you want to just convert 1 use
-f eg

./installer/html-template-to-template-toolkit.pl  --koharoot /path/to/the/root -f koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tmpl

So for me
./installer/html-template-to-template-toolkit.pl -c --koharoot /home/chrisc/git/koha/ -f koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tmpl

Then that file will be in the koha-tt dir and you will now have a
converted file. 

Hope this helps

Chris

-- 
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: </pipermail/koha-devel/attachments/20110411/bc70cf87/attachment.pgp>


More information about the Koha-devel mailing list