Adds flexible render system

This commit is contained in:
Manu Mtz-Almeida
2014-07-15 17:41:56 +02:00
parent 94bc35bb2d
commit 5ea7a92267
3 changed files with 105 additions and 42 deletions
+5
View File
@@ -31,3 +31,8 @@ func (c *Context) ParseBody(item interface{}) error {
func (engine *Engine) ServeFiles(path string, root http.FileSystem) {
engine.router.ServeFiles(path, root)
}
// DEPRECATED use gin.LoadHTMLGlob() or gin.LoadHTMLFiles() instead
func (engine *Engine) LoadHTMLTemplates(pattern string) {
engine.LoadHTMLGlob(pattern)
}