Added code to handle perl template toolkit markup [% %]