Htp to tt conversion
Jump to navigation
Jump to search
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.