I have some TT templates that I want tidy-up a little. I use tidy on the command-line.
my command looks like:
$ tidy -utf8 --preserve-entities y -indent -wrap 120 file.html.tt
Unfortunately if I have code like:
[% aoh.unshift({ label => '', value => 'All types' }); %]
It ends up in the resulting file as:
[% aoh.unshift({ label => '', value => 'All types' }); %]
The same happens with Template Toolkit code in tag attributes, eg:
<a href="[%%20%20c.url_for('/content/edit').query('data_type'%20=%3Edata_type%20)%20%]" >
What would be the needed options to make tidy ignore everything between "[%" and "%]"? Same question holds true for PHP start and end tags.
Thanks.