From 58bbed61ddec922fec53a39ec1472f2a5c480a0b Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 5 Mar 2016 20:13:53 -0500 Subject: refactor page --- src/guff.cr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/guff.cr') 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 -- cgit v1.2.3