tpls

Extendable, Fast Template Engine for Go
git clone git://git.lair.cx/tpls
Log | Files | Refs | README | LICENSE

body.html.go (302B)


      1 // Code generated by tplc. DO NOT EDIT.
      2 
      3 package templates
      4 
      5 import "go.lair.cx/tpls"
      6 
      7 type Body struct {
      8 	Name string
      9 }
     10 
     11 func (p *Body) Title() string {
     12 	return "이메일입니다."
     13 }
     14 func (p *Body) Body(w tpls.Writer) {
     15 	w.WriteRaw(`
     16 안녕하세요, `)
     17 	w.WriteString(p.Name)
     18 	w.WriteRaw(`님!
     19 `)
     20 }