blob: 9f5d1ad1498403261cbf306e317bc73189ef4909 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require "ecr/macros"
require "../page"
class Guff::TestAuthHTMLView
TITLE = "Guff Auth Test"
FEATURES = %w{bootstrap font-awesome guff/util}
def self.run(models, context : HTTP::Server::Context)
new(models).run(context)
end
def initialize(@models : Models)
end
def run(context)
page = PageHTMLView.new(TITLE, self.to_s)
page.add_features(FEATURES)
page.scripts << "/guff-stuff/test/auth.js"
context.response.content_type = page.content_type
context.response.puts page
end
def h(s : String)
HTML.escape(s || "")
end
ECR.def_to_s("./src/guff/views/ecrs/test/auth.ecr")
end
|