I need to extend an existing template and add to what already rendered into 
it, I have used {{block}} but it overrides the existing templates.


Master footer:

{{define "footer"}}

{{block "footerExtra" . }} {{end}}

{{end}}



App1:

{{block "footerExtra"}} 

<scirpt> app1 </script>

{{end}}



App2:

{{block "footerExtra"}} 

<scirpt> app2 </script>

{{end}}


 app2 overwrites app1


Is there a way to extend a template and add to the original content rather 
than overwriting it?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to