5 lines
277 B
HTML
5 lines
277 B
HTML
|
<canvas id="{{ if .Get "canvas" }}{{ .Get "canvas" }}{{ else }}mychart{{ end }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}400{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}400{{ end }}"></canvas>
|
||
|
<script>
|
||
|
{{ safeHTML .Inner }}
|
||
|
</script>
|