Skip to content

Commit

Permalink
Merge pull request #70 from fmd/develop-templates
Browse files Browse the repository at this point in the history
Renames SetHTTPTemplate to SetHTMLTemplate
  • Loading branch information
manucorporat committed Jul 16, 2014
2 parents dc43372 + 176edde commit 0ca4d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gin.go
Expand Up @@ -64,15 +64,15 @@ func Default() *Engine {

func (engine *Engine) LoadHTMLGlob(pattern string) {
templ := template.Must(template.ParseGlob(pattern))
engine.SetHTTPTemplate(templ)
engine.SetHTMLTemplate(templ)
}

func (engine *Engine) LoadHTMLFiles(files ...string) {
templ := template.Must(template.ParseFiles(files...))
engine.SetHTTPTemplate(templ)
engine.SetHTMLTemplate(templ)
}

func (engine *Engine) SetHTTPTemplate(templ *template.Template) {
func (engine *Engine) SetHTMLTemplate(templ *template.Template) {
engine.HTMLRender = render.HTMLRender{
Template: templ,
}
Expand Down

0 comments on commit 0ca4d36

Please sign in to comment.