Discover Packages
github.com/jwowillo/gen
transformer
package
Version:
v0.0.0-...-4eaec5d
Opens a new window with list of versions in this module.
Published: Apr 8, 2018
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ErrNoPage is returned when a page.Page that doesn't exist is referenced.
Bundle is a Transformer which bundles all referenced CSS and JS page.Pages
referenced in a page.Page.
NewBundle that has access to references in the page.Pages.
Transform the page.Page by replacing all referenced CSS and JS page.Pages with their
page.Pages.
Returns ErrNopage.Page if a referenced page.Page can't be found or if bundling fails.
Func wraps functions into Transformers.
Transform the page.Page by applying the function.
Gzip is a Transformer which gzips page.Pages.
Transform returns the gzipped page.Page.
Returns an error if the page.Page couldn't be gzipped.
Minify is a Transformer which minifies page.Pages.
NewMinify which can HTML, CSS, JS, and XML files.
Transform the page.Page by minifying it if it is an HTML, CSS, JS, and XML file
and skipping it otherwise.
Returns an error if the page.Page couldn't be minified.
Transformer creates a new page.Page from the given page.Page.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.