Re: how to trim all whitespaces and newlines from final output?
Rajeev Prasad <rp.neuli-/[email protected]> Fri, 3 May 2013 23:08:26 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
i've figured this. thank you. ________________________________ From: Rajeev Prasad <rp.neuli-/[email protected]> To: perl_TT <[email protected]> Sent: Saturday, May 4, 2013 12:58 AM Subject: how to trim all whitespaces and newlines from final output? hello, i am using tt to generate html pages, it adds a lot of whitespaces and newlines all over. Since HTML does not care about newlines or whitespaces. I want to remove all of them from finally generated page. so that size of the page is small and its loads fast. i googled to find: PRE_CHOMP, POST_CHOMP Removes whitespace before/after directives (default: 0/0). TRIM Remove leading and trailing whitespace from template output (default: 0). but i dont kno how to use them or if there is anything else I can do. pl advice. thank you. Rajeev _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates