From 406300af9a0264ce149ec63f2a06085385f85f2e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 20 May 2016 11:57:11 -0400 Subject: minor cleanups --- src/guff.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/guff.cr') diff --git a/src/guff.cr b/src/guff.cr index 4821090..2468c25 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -175,8 +175,8 @@ module Guff end TEMPLATES = { - :script => "", - :style => "", + script: "", + style: "", } private def assets(key : Symbol, paths : Array(String)) @@ -324,7 +324,7 @@ module Guff if context.request.path.not_nil!.match(PATH_RE) context.response.content_type = "text/html; charset=utf-8" context.response.status_code = 200 - Views::AdminPageView.new(@context).to_s(context.response.output) + Views::AdminPageView.new(@context).to_s(context.response) else call_next(context) end @@ -342,7 +342,7 @@ module Guff when "GET" context.response.content_type = "text/html; charset=utf-8" context.response.status_code = 200 - Views::LoginPageView.new(@context).to_s(context.response.output) + Views::LoginPageView.new(@context).to_s(context.response) when "POST" # TODO: try login else -- cgit v1.2.3