Sha256: 7acbcc002d1b3a8397a24492ee07267dc0b789051332a3f24d36fa3cd3fada06

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 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
  engine :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

13 entries across 13 versions & 1 rubygems

Version Path
ramaze-2023.01.06 examples/basic/partial.rb
ramaze-2012.12.08 examples/basic/partial.rb
ramaze-2012.12.08b examples/basic/partial.rb
ramaze-2012.04.14 examples/basic/partial.rb
ramaze-2012.03.07 examples/basic/partial.rb
ramaze-2011.12.28 examples/basic/partial.rb
ramaze-2011.10.23 examples/basic/partial.rb
ramaze-2011.07.25 examples/basic/partial.rb
ramaze-2011.01.30 examples/basic/partial.rb
ramaze-2011.01 examples/basic/partial.rb
ramaze-2010.06.18 examples/basic/partial.rb
ramaze-2010.04.04 examples/basic/partial.rb
ramaze-2010.04 examples/basic/partial.rb