Documentation
¶
Index ¶
- Constants
- func Middleware(next http.Handler) http.Handler
- type NamedTag
- type Printer
- func ParseJSON(r io.Reader) (p *Printer, err error)
- func ParseRequest(r *http.Request) (p *Printer, err error)
- func ParseRequestType(contentType string, values url.Values, r io.Reader) (p *Printer, err error)
- func ParseValues(values url.Values) (p *Printer, err error)
- func ParseYAML(r io.Reader) (p *Printer, err error)
- type Tag
Constants ¶
View Source
const PrintPath = "!print"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Printer ¶
type Printer struct {
PrintButton string
Title string
Lang string
Metas []*Tag
Styles []*Tag
Scripts []*Tag
PreBody []*NamedTag
Body string
PostBody []*NamedTag
}
func ParseRequestType ¶
func (*Printer) Component ¶
func (p *Printer) Component() h.HTMLComponent
type Tag ¶
type Tag struct {
// Attributes is a list of attributes. The attribute is pairs of attribute name and attribute value.
// For boolean attributes, must set key of then (`len(attribute) == 1`).
Attributes [][]string
Content string
}
TagAttibutes this is a map of attributes
func (*Tag) Build ¶
func (t *Tag) Build(b *h.HTMLTagBuilder) *h.HTMLTagBuilder
Click to show internal directories.
Click to hide internal directories.