Created
December 22, 2014 00:45
-
-
Save pandeiro/a814a1012698c007e10a to your computer and use it in GitHub Desktop.
HTML minification with htmlcompressor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import '[com.googlecode.htmlcompressor.compressor HtmlCompressor]) | |
(def compressor | |
(doto (HtmlCompressor.) | |
(.setRemoveIntertagSpaces true)) | |
(defn compress-html [html] | |
(.compress compressor html)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment