Class: JsTestServer::Server::Representations::Page

Inherits:
Erector::Widget
  • Object
show all
Defined in:
lib/js_test_server/server/representations/page.html.rb

Direct Known Subclasses

Dir, NotFound, RemoteControlSubscriber, Suite

Instance Method Summary collapse

Instance Method Details

#content(&block) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/js_test_server/server/representations/page.html.rb', line 2

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