Closed dfguo closed 9 years ago
any news on this? @paolochiodi
Hi, sorry for the delay. I've been out for holidays and still catching up with mails. The pull-request is simple enough and looks good. I'll work on it later today, but there are two things that make me think:
<p class="{{value}}">
under certain conditions may be rewritten as <p class={{value}}>
(without quotes) causing problems if the template engine happen to replace value with two space-separated classes.
At the moment I've no idea how to solve this, at a minimum I'll put a warning in the READMEThanks for the reply. I realized that problem too so I turned off remove_quotes option in my own application settings. Perhaps the warning could suggest that.
any updates on this?
@dfguo sorry for taking so long. I decided to go with a slightly different implementations, now published as version 0.2.0.
See here https://github.com/paolochiodi/htmlcompressor#javascript-template-compression for the new compress_js_templates
option.
sounds good. thanks!
allow custom defined javascript html templates to be compressed. Similar to this request https://code.google.com/p/htmlcompressor/issues/detail?id=78