You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
722 B
44 lines
722 B
1 year ago
|
require "phlex"
|
||
|
|
||
|
module RankKing
|
||
|
module Views
|
||
|
|
||
|
class Layout < Phlex::HTML
|
||
|
def initialize(view)
|
||
|
@view = view
|
||
|
end
|
||
|
|
||
|
def template
|
||
|
doctype
|
||
|
html(lang: "en") do
|
||
|
head do
|
||
|
meta(charset: "utf-8")
|
||
|
meta(name: "viewport", content: "width=device-width, initial-scale=1")
|
||
|
title { "Rank King" }
|
||
|
end
|
||
|
|
||
|
body do
|
||
|
header do
|
||
|
h1 { "Rank King" }
|
||
|
end
|
||
|
|
||
|
nav
|
||
|
|
||
|
main do
|
||
|
render @view
|
||
|
end
|
||
|
|
||
|
footer
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class NewPool < Phlex::HTML
|
||
|
def template
|
||
|
plain "ohai"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|