Go Templates
I normally split the HTML templates into several "sub templates". Here is the sub template for the "charts".
Go HTML template for the charts
{{define "charts"}}
<div id="chrt_cnt">
<div id="chrt1"></div>
<div id="chrt2"></div>
<div id="chrt3"></div>
</div>
<script>
{{ chart "tsk/bar/status/1" }}
</script>
<script>
{{ chart "tsk/pie/status/2" }}
</script>
<script>
{{ chart "tsk/line/status/3" }}
</script>
{{end}}