Sha256: e4ecfd1813672f820a29b54bb0a6be89c51d37982e55c9fac6d3e576da21ac81
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
class JsTestServer::Server::Representations::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 "Js Test Server" end def body_content(&block) yield(self) end def path helpers.rack_request.path_info end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
js-test-server-0.2.1 | lib/js_test_server/server/representations/page.html.rb |
js-test-server-0.2.0 | lib/js_test_server/server/representations/page.html.rb |