Blame view

go/src/themaru/vendor/github.com/gin-contrib/multitemplate/renderer.go 840 Bytes
476d2547e   김태훈   태마루 시스템 설정 / 업데이트...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  package multitemplate
  
  import "html/template"
  import "github.com/gin-gonic/gin/render"
  
  // Renderer type is the Agnostic Renderer for multitemplates.
  // When gin is in debug mode then all multitemplates works with
  // hot reloading allowing you modify file templates and seeing changes instantly.
  // Renderer should be created using multitemplate.NewRenderer() constructor.
  type Renderer interface {
  	render.HTMLRender
  	Add(name string, tmpl *template.Template)
  	AddFromFiles(name string, files ...string) *template.Template
  	AddFromGlob(name, glob string) *template.Template
  	AddFromString(name, templateString string) *template.Template
  	AddFromStringsFuncs(name string, funcMap template.FuncMap, templateStrings ...string) *template.Template
  	AddFromFilesFuncs(name string, funcMap template.FuncMap, files ...string) *template.Template
  }