Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package cssfs implements a handler which serves HTTP request to a CSS file with a minified version (i.e. unnecessary whitespace removed) of that file. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of the GNU General Public License along with this program. If not, see the [GNU General Public License](http://www.gnu.org/licenses/gpl.html) for details.
Package asset helps using static assets (scripts, stylesheets, other files) prepared by external asset pipelines in Go (Golang) templates. It provides template functions that insert references to (optionally) minified and versioned files. The idea behind this package is that in some cases creating asset bundles is best left to external tools such as grunt or gulp. The default configuration relies on a presence of a JSON file describing a mapping from original to minified assets. Such file can be prepared e.g. by gulp-rev. Example manifest file: Example usage in template: Example initialization: