mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-29 11:42:48 +01:00
6 lines
284 B
HTML
6 lines
284 B
HTML
{{- $scratch := .Page.Scratch.Get "scratch" -}}
|
|
|
|
{{- $content := .Inner | transform.Unmarshal | jsonify -}}
|
|
{{- $id := partial "function/id.html" (dict "content" $content "scratch" $scratch) -}}
|
|
<div class="echarts" id="{{ $id }}"></div>
|
|
{{- slice $id | $scratch.Add "echartsArr" -}}
|