Documentation ¶
Index ¶
- Variables
- func Preload()
- func PreloadTemplate(name string, r io.Reader) error
- func PreloadTemplateFile(templateName string) error
- func Register(templateName string)
- func Render(c *iris.Context, tmpl string, p map[string]interface{})
- func RenderWithStatus(c *iris.Context, templateName string, p map[string]interface{}, status int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Directory is the folder in which the template files are expected to be Directory = "templates" // Minify indicates whether or not the resulting HTML pages should be minified by using Minify = false // NoCache indicates whether or not we should add the Cache-Control header "no-cache" NoCache = true )
Functions ¶
func Preload ¶
func Preload()
Preload loads all the previously registered templates (see `Register`) into memory, to be used by `Render`.
func PreloadTemplate ¶
PreloadTemplate updates the definition of a single template from any stream, into memory.
func PreloadTemplateFile ¶
PreloadTemplateFile updates the definition of a single template file into memory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.