diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:13:07 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:13:07 -0500 |
commit | 7e24e13e887d441fd82a8d427913cfe36d5682da (patch) | |
tree | 52015789322efb6454a37c88771a038289ac5c29 /src | |
parent | 2421d5f15569515d9fda3c6f36edeaf7e5222b54 (diff) | |
download | old-guff-7e24e13e887d441fd82a8d427913cfe36d5682da.tar.bz2 old-guff-7e24e13e887d441fd82a8d427913cfe36d5682da.zip |
s/HTMLPageView/PageHTMLView/
Diffstat (limited to 'src')
-rw-r--r-- | src/guff.cr | 2 | ||||
-rw-r--r-- | src/guff/api-docs-html-view.cr | 4 | ||||
-rw-r--r-- | src/guff/page-html-view.cr (renamed from src/guff/html-page-view.cr) | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/guff.cr b/src/guff.cr index 533a10f..afab4a4 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -18,7 +18,7 @@ module Guff md.to_s ] - page = HTMLPageView.new(title, "asdf") + page = PageHTMLView.new(title, "asdf") page.styles << "foo/bar.css" # TODO: refactor this diff --git a/src/guff/api-docs-html-view.cr b/src/guff/api-docs-html-view.cr index e3f1097..83c28d0 100644 --- a/src/guff/api-docs-html-view.cr +++ b/src/guff/api-docs-html-view.cr @@ -1,6 +1,6 @@ require "html" require "ecr/macros" -require "./html-page-view" +require "./page-html-view" require "./api-methods" module Guff @@ -8,7 +8,7 @@ module Guff TITLE = "Guff API Documentation" def self.run(context : HTTP::Server::Context) - page = HTMLPageView.new(TITLE, new.to_s) + page = PageHTMLView.new(TITLE, new.to_s) context.response.content_type = page.content_type context.response.puts page end diff --git a/src/guff/html-page-view.cr b/src/guff/page-html-view.cr index e1f69a7..42ea454 100644 --- a/src/guff/html-page-view.cr +++ b/src/guff/page-html-view.cr @@ -2,7 +2,7 @@ require "ecr/macros" require "html" module Guff - class HTMLPageView + class PageHTMLView property :charset property :lang property :title |