I am thinking about doing something similar to this in the future. This is my current solution: https://gist.github.com/desantis/1b827fb1687356d13569
By default, html_minify removes all comments, otherwise I use $# for comments like Anand said. Andrew On Saturday, December 6, 2014 10:46:05 AM UTC-6, Peter Buckner 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 > > -Peter > www.trustedpeer.com > maps.avnwx.com > -- 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.
