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

Version Path
pivotal-screw-unit-0.5.0 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
honkster-screw-unit-server-0.6.3 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
screw-unit-0.5.1 vendor/js-test-core/lib/js_test_core/representations/page.html.rb
screw-unit-server-0.5.3 vendor/js-test-core/lib/js_test_core/representations/page.html.rb