Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSSPacker ¶
type CSSPacker struct {
CleanCSS bool
}
CSSPacker defines an implementation for parsing css files.
func (CSSPacker) Pack ¶
func (csp CSSPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.
type CleanCSSPacker ¶
type CleanCSSPacker struct {
Args []string
}
CleanCSSPacker defines an implementation for parsing css files. WARNING: Requires Nodejs to be installed.
func (CleanCSSPacker) Pack ¶
func (cess CleanCSSPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.
type JSPacker ¶
type JSPacker struct {
Exceptions []string
}
JSPacker defines an implementation for parsing css files.
func (JSPacker) Pack ¶
func (less JSPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.
type LessPacker ¶
LessPacker defines an implementation for parsing .less files into css files using the less compiler in nodejs. WARNING: Requires Nodejs to be installed.
func (LessPacker) Pack ¶
func (less LessPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.
type RawPacker ¶
type RawPacker struct{}
RawPacker defines an implementation for parsing css files.
func (RawPacker) Pack ¶
func (less RawPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.
type StaticMarkupPacker ¶
StaticMarkupPacker defines a struct which implements the assets.Packer interface and will convert all .static files into go files with the file html content turned into type-safe trees.Markup structures(see github.com/gu-io/gu/tree/master/trees).
func (StaticMarkupPacker) Pack ¶
func (static StaticMarkupPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)
Pack process all '.static.html' files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.