Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetFunc ¶
type AssetFunc struct { Router *router.Router `inject:""` Engine *pugjs.Engine `inject:""` BaseUrl string `inject:"config:cdn.base_url,optional"` }
AssetFunc returns the proper URL for the asset, either local or via CDN
type CapitalizeFunc ¶
type CapitalizeFunc struct{}
func (*CapitalizeFunc) Func ¶
func (s *CapitalizeFunc) Func() interface{}
type DebugFunc ¶
type DebugFunc struct{}
DebugFunc renders data as JSON, which allows debugging in templates
type JSON ¶
type JSON struct{}
JSON is our Javascript's JSON equivalent
type Math ¶
type Math struct{}
Math is our Javascript's Math equivalent
type Object ¶
type Object struct{}
Object implementation
type StartsWithFunc ¶
type StartsWithFunc struct{}
func (*StartsWithFunc) Func ¶
func (s *StartsWithFunc) Func() interface{}
type StriptagsFunc ¶
type StriptagsFunc struct{}
func (StriptagsFunc) Func ¶
func (df StriptagsFunc) Func() interface{}
Func as implementation of debug method
type TruncateFunc ¶
type TruncateFunc struct{}
func (*TruncateFunc) Func ¶
func (s *TruncateFunc) Func() interface{}
type TryURLFunc ¶
URLFunc allows templates to access the routers `URL` helper method
func (*TryURLFunc) Func ¶
func (u *TryURLFunc) Func(ctx context.Context) interface{}
Func as implementation of url method
Click to show internal directories.
Click to hide internal directories.