On Sat, Dec 6, 2014 at 10:16 PM, Peter Buckner <[email protected]> wrote:
> I like putting comments in my HTML to aid with debugging (beginning / end > of included blocks, etc) which aren't really necessary for production. Plus > l'll add lots of spaces to indent HTML tags. > > Anyone thought about an option to Templator which on output would > > 1. strip out all comments, and/or > 2. strip (leading?) whitespace -- (understanding that whitespace > sometimes is significant, so this would have to be optional) > > I'm thinking templator already goes through all the text, so doing this > on-the-fly shouldn't impact rendering performance much > I don't have an answer for #2, but for #1 you can use $# for comments and they are ignored by the templator. Anand -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/d/optout.
