From 5f3b78f7570e64e7337ebbf6a8d399366c4c75fd Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 9 Mar 2016 01:18:37 -0500 Subject: add comments --- src/guff/handlers/blog.cr | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/guff') diff --git a/src/guff/handlers/blog.cr b/src/guff/handlers/blog.cr index 89393c3..21e7db7 100644 --- a/src/guff/handlers/blog.cr +++ b/src/guff/handlers/blog.cr @@ -161,6 +161,10 @@ class Guff::Handlers::BlogHandler < Guff::Handler end end + ####################### + # post filter methods # + ####################### + FILTERS = { year: "year", month: "month", @@ -175,6 +179,10 @@ class Guff::Handlers::BlogHandler < Guff::Handler end end + ###################### + # draw posts methods # + ###################### + private def draw_posts(context, route, posts) case route[:type] when :list @@ -202,6 +210,10 @@ class Guff::Handlers::BlogHandler < Guff::Handler context.response.puts page end + ##################### + # draw tags methods # + ##################### + TAG_TEMPLATES = TemplateCache.new({ body: "
-- cgit v1.2.3