Sha256: 76940f3f01b9ed04b47ecf7c8f271ffd1d0773370f4a0b2c449cd20a7a765bb3

Contents?: true

Size: 596 Bytes

Versions: 10

Compression:

Stored size: 596 Bytes

Contents

require 'rubygems'
require 'ramaze'

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

pipeline = Ramaze::Template::Ezamar::TRANSFORM_PIPELINE
pipeline.put_after(::Ezamar::Element, ::Ezamar::RenderPartial)
pipeline.uniq!

class MainController < Ramaze::Controller
  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

10 entries across 10 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.12 examples/basic/partial.rb
Pistos-ramaze-2009.01 examples/basic/partial.rb
Pistos-ramaze-2009.02 examples/basic/partial.rb
manveru-ramaze-2008.12 examples/basic/partial.rb
manveru-ramaze-2009.01 examples/basic/partial.rb
ptomato-ramaze-2009.02.1 examples/basic/partial.rb
ptomato-ramaze-2009.02 examples/basic/partial.rb
ramaze-2009.01 examples/basic/partial.rb
ramaze-2009.03 examples/basic/partial.rb
ramaze-2009.02 examples/basic/partial.rb