remove unnecessar with

This commit is contained in:
Balakrishnan Balasubramanian 2025-05-25 02:19:16 -04:00
parent 7b9155ee66
commit f1793eca54

View File

@ -1,9 +1,9 @@
<div id='{{ with .Get "key" }}{{ . }}{{ end }}'></div> <div id='{{ .Get "key" }}'></div>
{{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | fingerprint }} {{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | fingerprint }}
<script src="{{ .RelPermalink }}"></script> <script src="{{ .RelPermalink }}"></script>
{{ end }} {{ end }}
<script> <script>
AsciinemaPlayer.create('/casts/{{ with .Get "key" }}{{ . }}{{ end }}.cast', document.getElementById('{{ with .Get "key" }}{{ . }}{{ end }}'), { AsciinemaPlayer.create('/casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}'), {
{{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }} {{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}
{{ if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }} {{ if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }}
{{ if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }} {{ if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }}