diff options
Diffstat (limited to 'src/guff.cr')
-rw-r--r-- | src/guff.cr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/guff.cr b/src/guff.cr index b2794b6..533a10f 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -18,8 +18,12 @@ module Guff md.to_s ] - context.response.content_type = "text/html; charset=utf-8" - context.response.puts HTMLPageView.new(title, "asdf") + page = HTMLPageView.new(title, "asdf") + page.styles << "foo/bar.css" + + # TODO: refactor this + context.response.content_type = page.content_type + context.response.puts page else call_next(context) end |