Sha256: b60aa4ec046bac34ea85ef2fb69fcb9dfe1cf897576bdebe4c43c34431c78ad7

Contents?: true

Size: 293 Bytes

Versions: 17

Compression:

Stored size: 293 Bytes

Contents

here = File.expand_path(File.dirname(__FILE__))
$: << "#{here}/../../lib"

require "erector"

class Hello < Erector::Widget
  def content
    html do
      head do
        title "Welcome page"
      end
      body do
        p "Hello, world"
      end
    end
  end
end
puts Hello.new.to_html

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
erector-rails4-0.2.0 spec/erector/hello_from_readme.rb
erector-rails4-0.1.3 spec/erector/hello_from_readme.rb
erector-rails4-0.1.2 spec/erector/hello_from_readme.rb
erector-0.10.0 spec/erector/hello_from_readme.rb
erector-rails4-0.1.1 spec/erector/hello_from_readme.rb
erector-rails4-0.1.0 spec/erector/hello_from_readme.rb
erector-rails4-0.0.7 spec/erector/hello_from_readme.rb
erector-rails4-0.0.6 spec/erector/hello_from_readme.rb
erector-rails4-0.0.5 spec/erector/hello_from_readme.rb
erector-rails4-0.0.4 spec/erector/hello_from_readme.rb
erector-rails4-0.0.3 spec/erector/hello_from_readme.rb
erector-rails4-0.0.2 spec/erector/hello_from_readme.rb
erector-rails4-0.0.1 spec/erector/hello_from_readme.rb
erector-0.9.0 spec/erector/hello_from_readme.rb
erector-0.9.0.pre1 spec/erector/hello_from_readme.rb
erector-0.8.3 spec/erector/hello_from_readme.rb
erector-0.8.2 spec/erector/hello_from_readme.rb