Merge pull request #70 from fmd/develop-templates

Renames SetHTTPTemplate to SetHTMLTemplate
This commit is contained in:
Manu Mtz.-Almeida 2014-07-17 00:27:39 +02:00
commit 0ca4d36b76
1 changed files with 3 additions and 3 deletions

6
gin.go
View File

@ -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,
}