Sha256: 75d785a08a3b38c19b662dd607cbcd2c402a6b314b5d2f9ac28670bbe59b2289

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

site_description = {
  id: 'top',
  top_level: true,
  type: 'layout/one_column',
  widgets: [
    name: "Welcome",
    type: 'text',
    content: {text: 'Hello World'}
  ]
}



# Configure the web server
#
opts = {
  :app_name => 'tut01',
  :page_title => 'Tutorial01: Hello World'
}

require 'omf_common/lobject'
OMF::Common::Loggable.init_log 'tut01'

require 'omf_web'
OMF::Web.register_widget(site_description)
OMF::Web.start(opts)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omf_web-1.2.1 doc/tutorial/tut01/hello_world.rb
omf_web-1.2.0 doc/tutorial/tut01/hello_world.rb
omf_web-1.0.0 doc/tutorial/tut01/hello_world.rb
omf_web-0.9.9 doc/tutorial/tut01/hello_world.rb
omf_web-0.9.8 doc/tutorial/tut01/hello_world.rb