From 2553c7e1fc70b1d3a142bdd4ed9899bda81b5765 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Mon, 30 Oct 2023 15:58:00 +0800 Subject: [PATCH] feat(plugin): add script.html partial template to handle rendering of script tags with various options The `script.html` partial template has been added to handle the rendering of script tags with various options. This template supports the following features: - If the `Content` variable is provided, it will be rendered as the content of the script tag. - If the `Source` variable starts with " + {{- .Content | safeJS -}} + +{{- else if strings.HasPrefix .Source " +{{- end -}}