Golang MergeHTML templates with dynamic name

后端 未结 0 1355
慢半拍i
慢半拍i 2021-02-04 12:27

Go support template embedding using template names.

const temp1 = `
This is main {{template "sub"}}
`
const temp2 = `
this is child
`

func main() {
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题