Documentation ¶
Index ¶
- func Base(filename string, opts *ace.Options) string
- func Curl(s string) string
- func CurlyNotMethod(parent, key, full string) interface{}
- func CurlyX(parent, key, full string) interface{}
- func Data(cf CurlyFunc, root *template.Template) interface{}
- func Encurl(cf CurlyFunc, parent Dotted, level int) interface{}
- func Format(prettyprint bool, input string, noclose []string) (output string)
- func FormatSubtrees(prettyprint bool, tpl *templatehtml.Template, noclose []string) (output string)
- func LoadAce(base AceFile, inner *AceFile, innername string, opts *ace.Options) (*templatehtml.Template, error)
- func Main(htmlFuncs, jsxlFuncs map[string]interface{})
- func Uncurl(s string) string
- func WriteFile(filename, data string) error
- type AceFile
- type Context
- type Curled
- type CurlyFunc
- type Define
- type Dotted
- type NodeArgs
- type Nota
- type SortableTemplates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurlyNotMethod ¶
func CurlyNotMethod(parent, key, full string) interface{}
func FormatSubtrees ¶
func FormatSubtrees(prettyprint bool, tpl *templatehtml.Template, noclose []string) (output string)
FormatSubtrees returns subtemplates trees forrmatted.
Types ¶
type Context ¶
type Define ¶
func MakeDefine ¶
func MakeDefine(definesonly *templatetext.Template, shortname, fullname string) (Define, error)
type Dotted ¶
type Dotted struct { Parent *Dotted Leaves []*Dotted // template/parse has nodes, we ought to have leaves Name string Ranged bool Keys []string Decl string }
Dotted is a tree.
type NodeArgs ¶
type NodeArgs struct { Template *template.Template PrefixWords []string Decl []*parse.VariableNode }
type Nota ¶
type Nota map[string]interface{}
Nota is a type of encoded jsx notations for template transplitting.
type SortableTemplates ¶
type SortableTemplates []*templatehtml.Template
SortableTemplates is for just sorting.
func (SortableTemplates) Len ¶
func (st SortableTemplates) Len() int
func (SortableTemplates) Less ¶
func (st SortableTemplates) Less(i, j int) bool
func (SortableTemplates) Swap ¶
func (st SortableTemplates) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.