Parent

Included Modules

Class Index [+]

Quicksearch

Nagoro::Pipe::RenderPartial

Pipe that transforms tags.

the src parameter in the render tag will be used as first parameter to render_partial, all other paramters are passed on as variables.

Example calling render_partial(‘hello’):

  <render src="hello" />

Example calling render_partial(‘hello’, ‘tail’ => ‘foo’):

  <render src="hello" tail="foo" />

Public Instance Methods

tag_end(tag) click to toggle source
    # File lib/ramaze/view/nagoro/render_partial.rb, line 27
27:       def tag_end(tag)
28:         super unless tag == 'render'
29:       end
tag_start(tag, attrs) click to toggle source
    # File lib/ramaze/view/nagoro/render_partial.rb, line 19
19:       def tag_start(tag, attrs)
20:         if tag == 'render' and action_name = attrs.delete('src')
21:           append(render_partial(action_name, attrs))
22:         else
23:           super
24:         end
25:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.