Documentation
¶
Overview ¶
Package tplctx provides basic amenities to be provided to templates as a context object. It may be composed to provide further methods.
Index ¶
- type Ctx
- func (c *Ctx) AC(action string) string
- func (c *Ctx) AssetIntegrity(path string) string
- func (c *Ctx) AssetURL(path string) string
- func (c *Ctx) CSPNonce() string
- func (c *Ctx) Fields(f interface{}) *pongo2.Value
- func (c *Ctx) Flash() []session.Flash
- func (c *Ctx) IsAdmin() bool
- func (c *Ctx) IsDevMode() bool
- func (c *Ctx) IsLoggedIn() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.