mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 17:15:31 +00:00
Export xsl into seperate file via embedding
This commit is contained in:
@@ -66,12 +66,10 @@
|
||||
<div>
|
||||
{{ range $_, $w := $a.Works }}
|
||||
{{- if ne (len $w.Citation.InnerXML ) 0 -}}
|
||||
<div hx-ext="client-side-templates">
|
||||
<div xslt-template="citation-xslt" xslt-onload>
|
||||
<xml>
|
||||
{{- Safe $w.Citation.InnerXML -}}
|
||||
</xml>
|
||||
</div>
|
||||
<div xslt-template="citation-xslt" xslt-onload>
|
||||
<xml>
|
||||
{{- Safe $w.Citation.InnerXML -}}
|
||||
</xml>
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
@@ -94,4 +92,6 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ template "_xslt_citation" . }}
|
||||
<script id="citation-xslt" type="application/xml">
|
||||
{{ EmbedSafe "xslt/citation.xsl" }}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user