From c0283620bd056ed5a34b594d8551f707bd5f6663 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Fri, 3 Nov 2023 14:21:07 +0800 Subject: [PATCH] feat(plugin): add script.html partial template to handle rendering of script tags with various attributes and options The `script.html` partial template has been added to handle the rendering of script tags with various attributes and options. It 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 -}}