Show bookmarks on post page

This commit is contained in:
2024-07-10 18:57:59 +10:00
parent 98e289744a
commit 87d8e5a1fa
5 changed files with 25 additions and 13 deletions

View File

@@ -5,9 +5,10 @@ module Main
include Deps["views.posts.show"]
def handle(req, res)
slug = req.params[:slug]
res.render show, slug: slug
res.status = 200
res.body = cache(key: "posts_show",
params: [req.params[:slug]],
content_proc: ->(slug) { show.call(context: Main::Views::Context.new(request: req), slug: slug) })
end
end
end