cruisecontrolfc / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
0 stars 0 forks source link

Text/html script tag compression #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a script tag with type ="text/html"
2. Use compression on the HTML page. 

What is the expected output? What do you see instead?
I expect the contents to be compressed as text/html. However, the contents are 
not compressed.

What version of the product are you using? On what operating system?
Using JSTL tags, with 1.5.3

Original issue reported on code.google.com by san...@peecho.com on 20 Sep 2012 at 8:28

GoogleCodeExporter commented 9 years ago
I am also look forward this feature, but this issue seems is duplicate with 
issue #72

Original comment by withw...@gmail.com on 16 Nov 2012 at 7:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
update: It seems the author have worked out the solution for this, but you 
should use "text/x-jquery-tmpl" instead of "text/html" for inline template, if 
you still want use "text/html" (personally, I prefer "text/x-template".), you 
may need modify the source (see http://bit.ly/THyyQJ)

Original comment by withw...@gmail.com on 16 Nov 2012 at 8:41

GoogleCodeExporter commented 9 years ago
Just FYI: this will not work with iCanHaz or Mustache templates, unfortunately 
- or at least not without changing those particular scripts. I wirked past this 
problem by starting to use Hogan.js and precompile the Hogan Mustache templates 
on the server to vanilla Javascript, which can be compressed fine ;-)

Original comment by san...@peecho.com on 16 Nov 2012 at 9:31