aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guff.cr2
-rw-r--r--src/guff/api-docs-html-view.cr4
-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