Update templ dependency to v0.3.906 and adjust XML declaration formatting in templates

This commit is contained in:
2025-07-16 21:02:15 +08:00
parent 042b383988
commit ca3fdf8980
11 changed files with 21 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ package template
import "bilinovel-downloader/model"
templ ContentOPF(uniqueIdentifier string, dc *model.DublinCoreMetadata, manifest *model.Manifest, spine *model.Spine, guide *model.Guide) {
@templ.Raw(`<?xml version="1.0" encoding="UTF-8"?>`)
@templ.Raw(`<?xml version='1.0' encoding='utf-8'?>`)
<package version="3.0" xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" unique-identifier={ uniqueIdentifier }>
if dc != nil {
{{ metadata, err := dc.Marshal() }}