diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-05 20:13:53 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-05 20:13:53 -0500 |
commit | 58bbed61ddec922fec53a39ec1472f2a5c480a0b (patch) | |
tree | a8baf43f337e974ae84d1fac4cdada85bf1e5aad /src/guff.cr | |
parent | 2feff82cf98724bb1f8249d681f116459241c929 (diff) | |
download | old-guff-58bbed61ddec922fec53a39ec1472f2a5c480a0b.tar.bz2 old-guff-58bbed61ddec922fec53a39ec1472f2a5c480a0b.zip |
refactor page
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 |