require "ecr/macros"
require "html"
module Guff
class HTMLPageView
property :title
property :body
property :scripts
property :styles
property :metas
property :body_id
property :body_class
def initialize(@title = "" : String, @body = "" : String)
@scripts = [] of String
@styles = [] of String
@metas = [] of Hash(String, String)
end
def page_headers : String
# TODO
""
end
def page_footers : String
# TODO
""
end
def h(s : String?) : String
s ? HTML.escape(s) : ""
end
ECR.def_to_s("./src/guff/views/page.ecr")
end
end