Show bookmarks on post page
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user