Sha256: 4c90c07780bf3cc3324c1aabb09d591305a73d4db037805d412e40dc8902cb57

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'wunderbar'

Wunderbar.html do
  _head_ do
    _title 'Greeter'
    _style %{
      input {display: block; margin: 2em}
    }
  end

  _body? do
    if @name
      _p "Hello #{@name}!"
    else
      _form method: 'post' do
        _p 'Please enter your name:'
        _input name: 'name'
        _input type: 'submit'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wunderbar-0.8.8 demo/helloworld.rb
wunderbar-0.8.7 demo/helloworld.rb