Documentation ¶
Index ¶
- Constants
- func Minify(data string) string
- type CContext
- func (con *CContext) AttachVars(vars string, index int)
- func (con *CContext) DiscardAndAfter(index int)
- func (con *CContext) EndIf(startIndex int, body string) (index int)
- func (con *CContext) EndLoop(body string) (index int)
- func (con *CContext) EndTemplate(body string) (index int)
- func (con *CContext) LastBufIndex() int
- func (con *CContext) Push(nType string, body string) (index int)
- func (con *CContext) PushPhrase(langIndex int) (index int)
- func (con *CContext) PushPhrasef(langIndex int, args string) (index int)
- func (con *CContext) PushText(body string, fragIndex int, fragOutIndex int) (index int)
- func (con *CContext) StartIf(body string) (index int)
- func (con *CContext) StartIfPtr(body string) (index int)
- func (con *CContext) StartLoop(body string) (index int)
- func (con *CContext) StartTemplate(body string) (index int)
- type CTemplateConfig
- type CTemplateSet
- func (c *CTemplateSet) Compile(name, fileDir, expects string, expectsInt interface{}, ...) (out string, e error)
- func (c *CTemplateSet) CompileByLoggedin(name, fileDir, expects string, expectsInt interface{}, ...) (stub, gout, mout string, e error)
- func (c *CTemplateSet) GetConfig() CTemplateConfig
- func (c *CTemplateSet) GetOverridenRoots() map[string]map[string]bool
- func (c *CTemplateSet) ResetLogs(in string)
- func (c *CTemplateSet) SetBaseImportMap(importMap map[string]string)
- func (c *CTemplateSet) SetBuildTags(tags string)
- func (c *CTemplateSet) SetConfig(config CTemplateConfig)
- func (c *CTemplateSet) SetOverrideTrack(overriden map[string]map[string]bool)
- func (c *CTemplateSet) SetPerThemeTmpls(perThemeTmpls map[string]bool)
- func (c *CTemplateSet) SetThemeName(name string)
- type FragLite
- type Fragment
- type OutBufferFrame
- type OutFrag
- type SkipBlock
- type Skipper
- type VarItem
- type VarItemReflect
Constants ¶
View Source
const ( ATTmpl = iota ATLoop ATIfPtr )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CContext ¶
type CContext struct { RootHolder string VarHolder string HoldReflect reflect.Value RootTemplateName string TemplateName string LoopDepth int OutBuf *[]OutBufferFrame }
func (*CContext) AttachVars ¶
func (*CContext) DiscardAndAfter ¶
func (*CContext) EndTemplate ¶
func (*CContext) LastBufIndex ¶
func (*CContext) PushPhrase ¶
func (*CContext) PushPhrasef ¶
func (*CContext) StartIfPtr ¶
func (*CContext) StartTemplate ¶
type CTemplateConfig ¶
type CTemplateSet ¶
type CTemplateSet struct { FragOut []OutFrag // contains filtered or unexported fields }
nolint
func NewCTemplateSet ¶
func NewCTemplateSet(in string, logDir ...string) *CTemplateSet
func (*CTemplateSet) CompileByLoggedin ¶
func (*CTemplateSet) GetConfig ¶
func (c *CTemplateSet) GetConfig() CTemplateConfig
func (*CTemplateSet) GetOverridenRoots ¶
func (c *CTemplateSet) GetOverridenRoots() map[string]map[string]bool
func (*CTemplateSet) ResetLogs ¶
func (c *CTemplateSet) ResetLogs(in string)
func (*CTemplateSet) SetBaseImportMap ¶
func (c *CTemplateSet) SetBaseImportMap(importMap map[string]string)
func (*CTemplateSet) SetBuildTags ¶
func (c *CTemplateSet) SetBuildTags(tags string)
func (*CTemplateSet) SetConfig ¶
func (c *CTemplateSet) SetConfig(config CTemplateConfig)
func (*CTemplateSet) SetOverrideTrack ¶
func (c *CTemplateSet) SetOverrideTrack(overriden map[string]map[string]bool)
func (*CTemplateSet) SetPerThemeTmpls ¶
func (c *CTemplateSet) SetPerThemeTmpls(perThemeTmpls map[string]bool)
func (*CTemplateSet) SetThemeName ¶
func (c *CTemplateSet) SetThemeName(name string)
type OutBufferFrame ¶
Click to show internal directories.
Click to hide internal directories.