diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-20 11:57:11 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-20 11:57:11 -0400 |
commit | 406300af9a0264ce149ec63f2a06085385f85f2e (patch) | |
tree | 851ff09a155b729ae20d551f539d04afa463c877 /src/guff.cr | |
parent | 8855b530221b1e3c06459c8bff18ae474a259450 (diff) | |
download | guff-406300af9a0264ce149ec63f2a06085385f85f2e.tar.bz2 guff-406300af9a0264ce149ec63f2a06085385f85f2e.zip |
minor cleanups
Diffstat (limited to 'src/guff.cr')
-rw-r--r-- | src/guff.cr | 8 |
1 files changed, 4 insertions, 4 deletions
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 => "<script type='text/javascript' src='%s'></script>", - :style => "<link rel='stylesheet' type='text/css' href='%s'/>", + script: "<script type='text/javascript' src='%s'></script>", + style: "<link rel='stylesheet' type='text/css' href='%s'/>", } 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 |