Minifier is an HTML minifier.
| 52 | |
| 53 | // Minifier is an HTML minifier. |
| 54 | type Minifier struct { |
| 55 | KeepComments bool |
| 56 | KeepConditionalComments bool |
| 57 | KeepSpecialComments bool |
| 58 | KeepDefaultAttrVals bool |
| 59 | KeepDocumentTags bool |
| 60 | KeepEndTags bool |
| 61 | KeepQuotes bool |
| 62 | KeepWhitespace bool |
| 63 | TemplateDelims [2]string |
| 64 | } |
| 65 | |
| 66 | // Minify minifies HTML data, it reads from r and writes to w. |
| 67 | func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected