Documentation ¶
Index ¶
- func Generate(dirname string, outputDir string, relativeToDir bool, leftDelim string, ...) ([]*bundler.ProcessedFile, string, error)
- func LoadManifestFiles(dirname string, mode RunMode, relativeToDir bool, leftDelim string, ...) (template.FuncMap, error)
- func ProcessManifestFiles(manifest io.Reader, dirname string, mode RunMode, relativeToDir bool, ...) (template.FuncMap, error)
- type RunMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(dirname string, outputDir string, relativeToDir bool, leftDelim string, rightDelim string, extensions map[string]struct{}) ([]*bundler.ProcessedFile, string, error)
Generate processes (bundles, compresses...) the assets for use and creates the Manifest file NOTE: no compression yet until there is a native and establishes compressor written in Go
func LoadManifestFiles ¶
func LoadManifestFiles(dirname string, mode RunMode, relativeToDir bool, leftDelim string, rightDelim string) (template.FuncMap, error)
LoadManifestFiles reads the manifest file generated by the Generate() command in Production mode and returns template.FuncMap for the provided RunMode
func ProcessManifestFiles ¶
func ProcessManifestFiles(manifest io.Reader, dirname string, mode RunMode, relativeToDir bool, leftDelim string, rightDelim string) (template.FuncMap, error)
ProcessManifestFiles reads an existing manifest file generated by the Generate() command in Production mode and returns template.FuncMap for the provided RunMode
Types ¶
Click to show internal directories.
Click to hide internal directories.