summaryrefslogtreecommitdiff
path: root/src/http/posts.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2024-07-24 21:48:38 +0200
committerBrian Picciano <mediocregopher@gmail.com>2024-07-24 21:48:38 +0200
commit45c20d03663878f3508eaa9b961cb0cb12cc5574 (patch)
treea965671ce18393c638b3d52b6a82b3b5cf90beb9 /src/http/posts.go
parent60c6165d07b7fa633d7a8fafbe70e23c83d43c47 (diff)
Got post exporting working
Diffstat (limited to 'src/http/posts.go')
-rw-r--r--src/http/posts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/posts.go b/src/http/posts.go
index 5a295a7..30c4012 100644
--- a/src/http/posts.go
+++ b/src/http/posts.go
@@ -23,7 +23,7 @@ type postPreprocessFuncs struct {
imageTpl *template.Template
}
-func newPostPreprocessFuncs(urlBuilder render.URLBuilder) postPreprocessFuncs {
+func NewPostPreprocessFuncs(urlBuilder render.URLBuilder) post.PreprocessFunctions {
imageTpl := template.New("image.html")
imageTpl = template.Must(imageTpl.Parse(mustReadTplFile("image.html")))
return postPreprocessFuncs{urlBuilder, imageTpl}