Sha256: 2eef31c07f19002dc102b72a7eff6b9017e26a697219703bf333dc3daace1e57

Contents?: true

Size: 489 Bytes

Versions: 24

Compression:

Stored size: 489 Bytes

Contents

require 'rubygems'
require 'ramaze'

# This is a small extension to the hello world example, showing how to use the
# <render> tag of Nagoro.
#
# Browse to /more and /even_more

class MainController < Ramaze::Controller
  provide :html => :nagoro

  def index
    "Hello, World!"
  end

  def more
    @tail = request[:tail] || 'the standard'
    'More of <render src="/index" /> #@tail'
  end

  def even_more
    '<render src="/more" tail="This is even more" />'
  end
end

Ramaze.start

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
Pistos-ramaze-2009.04.08 examples/basic/partial.rb
Pistos-ramaze-2009.06.12 examples/basic/partial.rb
manveru-ramaze-2009.04.01 examples/basic/partial.rb
manveru-ramaze-2009.04.08 examples/basic/partial.rb
manveru-ramaze-2009.04.18 examples/basic/partial.rb
manveru-ramaze-2009.04.22 examples/basic/partial.rb
manveru-ramaze-2009.04 examples/basic/partial.rb
manveru-ramaze-2009.05.08 examples/basic/partial.rb
manveru-ramaze-2009.05 examples/basic/partial.rb
manveru-ramaze-2009.06.04 examples/basic/partial.rb
manveru-ramaze-2009.06.12 examples/basic/partial.rb
manveru-ramaze-2009.06 examples/basic/partial.rb
manveru-ramaze-2009.07 examples/basic/partial.rb
rjspotter-ramaze-2009.06.29 examples/basic/partial.rb
rjspotter-ramaze-2009.06.31 examples/basic/partial.rb
ramaze-2010.03 examples/basic/partial.rb
ramaze-2010.01 examples/basic/partial.rb
ramaze-2009.10 examples/basic/partial.rb
ramaze-2009.07 examples/basic/partial.rb
ramaze-2009.04 examples/basic/partial.rb