Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circuit ¶ added in v0.10.5
func NewCircuit ¶ added in v0.10.5
func NewCircuit() *Circuit
func (*Circuit) Compress ¶ added in v0.10.5
Compress gzip-compresses data at maximum compression. Bundles are compressed once at build time and served directly with Content-Encoding: gzip.
func (*Circuit) Load ¶ added in v0.10.5
Load reads a file or directory at path, encodes and compresses the contents, and stores the bundle in Routes keyed by the base name of path. Raw data is freed from each Value after the bundle is stored.
type Forge ¶
type Forge interface {
HTML(raw string) *template.HTML
Build(class string, elements ...*template.HTML)
Builder(class string, elements ...*template.HTML) *template.HTML
Frames(frame ...*template.HTML) [][]byte
Markdown() *markdown.Markdown
JS(path string) *template.HTML
CSS(css string) *template.HTML
Elem(tag, text string, attrs ...Attr) *template.HTML
Block(tag string, attrs Attr, children ...*template.HTML) *template.HTML
Void(tag string, attrs Attr) *template.HTML
}
type Value ¶
type Value struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Size uint32 `json:"size"`
Data []byte `json:"-"`
}
Value is the unit of work for encoding. Name and Type populate the manifest; Data is the raw blob. Data is excluded from JSON and freed after encoding.
Click to show internal directories.
Click to hide internal directories.