diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 18:26:51 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 18:26:51 +0800 |
commit | 4f4f6a25be2625b4bb2cb10e3520f52c4a35c243 (patch) | |
tree | 5458da1ee5efa5e46e831c34c1f39ebc67fb71b0 /resources.go | |
parent | Remove renderReadmeAtTree (diff) | |
download | forge-4f4f6a25be2625b4bb2cb10e3520f52c4a35c243.tar.gz forge-4f4f6a25be2625b4bb2cb10e3520f52c4a35c243.tar.zst forge-4f4f6a25be2625b4bb2cb10e3520f52c4a35c243.zip |
Separate code/README rendering and unsafe to their own packages
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources.go b/resources.go index 0bb033a..00d7b66 100644 --- a/resources.go +++ b/resources.go @@ -11,6 +11,7 @@ import ( "github.com/tdewolff/minify/v2" "github.com/tdewolff/minify/v2/html" + "go.lindenii.runxiyu.org/forge/misc" ) //go:embed LICENSE source.tar.gz @@ -59,7 +60,7 @@ func loadTemplates() (err error) { return err } - _, err = templates.Parse(bytesToString(minified)) + _, err = templates.Parse(misc.BytesToString(minified)) if err != nil { return err } |