Documentation ¶
Index ¶
- Variables
- func Configure(vi View)
- func FileTime(name string) (string, error)
- func LoadPlugins(fms ...template.FuncMap)
- func LoadTemplates(rootTemp string, childTemps []string)
- func Repopuldate(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-danger" FlashSuccess = "alert-success" FlashNotice = "alert-info" FlashWarning = "alert-warning" )
Functions ¶
func LoadPlugins ¶
LoadPlugins will combine all template.FuncMaps into one map and then set the plugins for the templates If a func already exists, it is rewritten, there is no error
func LoadTemplates ¶
LoadTemplates will set the root and child templates
func Repopuldate ¶
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) AssertTimePath ¶
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 ¶
func (*View) SendFlashes ¶
func (v *View) SendFlashes(w http.ResponseWriter)
SendFlashes allows retrieval of the flash messages va Ajax
Click to show internal directories.
Click to hide internal directories.