Re: bad tpl formatting help?
I think I have a Perl script working that helps to make xcart .tpl files more readable. It fixes up nested if statements. So far I have only dealt with the if statements with the assumtion that else and elsif are not likely to be nested. The script seems to make a much more readable file. If there is any interest, I'll share the script and would probably take the time to add indentation for other nested statements such as for loops. Since these are not likely to be nested to the point of confusion, this might not be worth doing. I don't want to write a whole smartytidy script, just want to get the scripts so I can edit them. I can also make an exe to run the indenting script for those who are not running perl scripts.
__________________
xcart version 4.1.9
|