Documentation ¶
Index ¶
- Variables
- func Configure(vi View)
- func FileTime(name string) (string, error)
- func LoadPlugins(fm template.FuncMap)
- func LoadTemplates(rootTemp string, childTemps []string)
- func Repopulate(list []string, src url.Values, dst map[string]interface{})
- func Validate(req *http.Request, required []string) (bool, string)
- type Flash
- type Template
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlashError = "alert-box alert" FlashSuccess = "alert-box success" FlashNotice = "alert-box" FlashWarning = "alert-box warning" )
Functions ¶
func LoadPlugins ¶
LoadPlugins will set the plugins for the templates
func LoadTemplates ¶
LoadTemplates will set the root and child templates
func Repopulate ¶
Repopulate updates the dst map so the form fields can be refilled
Types ¶
type View ¶
type View struct { BaseURI string Extension string Folder string Name string Caching bool Vars map[string]interface{} // contains filtered or unexported fields }
View attributes
func (*View) AssetTimePath ¶
AssetTimePath returns a URL with the proper base uri and timestamp appended. Works for CSS and JS assets Determines if local or on the web
func (*View) PrependBaseURI ¶
PrependBaseURI prepends the base URI to the string
func (*View) RenderSingle ¶
func (v *View) RenderSingle(w http.ResponseWriter)
Render a template to the screen
func (*View) SendFlashes ¶
func (v *View) SendFlashes(w http.ResponseWriter)
SendFlashes allows retrieval of flash messages for using with Ajax
Click to show internal directories.
Click to hide internal directories.