Sha256: 20515068b6cd0724fdd04586f4444d6735aae3bf10615aec5588d78d12c55f05
Contents?: true
Size: 876 Bytes
Versions: 2
Compression:
Stored size: 876 Bytes
Contents
module ThinRest 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
2 entries across 2 versions & 1 rubygems