Sha256: bb7219583d8063e672428b95f31b2e2e26812fe35d0fc8a4ce4882e5434338f0
Contents?: true
Size: 878 Bytes
Versions: 21
Compression:
Stored size: 878 Bytes
Contents
module JsTestCore module Representations class Page < Erector::Widget def content(&block) rawtext %Q{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">} html :xmlns => "http://www.w3.org/1999/xhtml", :"xml:lang" => "en" do head do meta :"http-equiv" => "Content-Type", :content => "text/html;charset=UTF-8" title title_text head_content end body do body_content(&block) end end end protected def head_content end def title_text "Thin Rest" end def body_content(&block) yield(self) end def path helpers.rack_request.path_info end def script_elements end def link_elements end end end end
Version data entries
21 entries across 21 versions & 6 rubygems