From f84e88f04dbb95fbde43d08edd51768a5daf808f Mon Sep 17 00:00:00 2001 From: Chloe A Date: Thu, 11 Jun 2026 19:38:21 +0500 Subject: [PATCH 1/2] cmd/tclipd: defer the prism script --- cmd/tclipd/tmpl/fancypost.html | 2 +- cmd/tclipd/tmpl/showpaste.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tclipd/tmpl/fancypost.html b/cmd/tclipd/tmpl/fancypost.html index 0a63382..efd66be 100644 --- a/cmd/tclipd/tmpl/fancypost.html +++ b/cmd/tclipd/tmpl/fancypost.html @@ -34,7 +34,7 @@ - +
{{.RawHTML}} diff --git a/cmd/tclipd/tmpl/showpaste.html b/cmd/tclipd/tmpl/showpaste.html index 3676b30..cb29577 100644 --- a/cmd/tclipd/tmpl/showpaste.html +++ b/cmd/tclipd/tmpl/showpaste.html @@ -14,7 +14,7 @@ } - + {{if .UserInfo}} {{if ne .PasterUserID .UserID}} From 0a80d32bccc0ad1bc7d81f3a41cb32ad6b271092 Mon Sep 17 00:00:00 2001 From: Chloe A Date: Thu, 11 Jun 2026 19:53:05 +0500 Subject: [PATCH 2/2] cmd/tclipd: preload optimization hack for prism --- cmd/tclipd/tmpl/showpaste.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tclipd/tmpl/showpaste.html b/cmd/tclipd/tmpl/showpaste.html index cb29577..fb133b7 100644 --- a/cmd/tclipd/tmpl/showpaste.html +++ b/cmd/tclipd/tmpl/showpaste.html @@ -43,7 +43,7 @@ {{else}}
{{.Data}}
+ class="{{.EnableLineNumbers}} {{.EnableWordWrap}} language-text">{{.Data}}

{{end}}