How to extend a template in go?
问题 Here is the problem: There are several article s on each page's content section and I'd like to insert a likebar template below each article. So the base.tmpl is like: <html> <head> {{template "head.tmpl" .}} </head> <body> {{template "content.tmpl" .}} </body> </html> and in article.tmpl I want to have : {{define "content"}} <div>article 1 {{template "likebar.tmpl" .}} </div> <div>article 2 {{template "likebar.tmpl" .}} </div> ... //these divs are generated dynamically {{end}} How can I