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