Methods

Class Index [+]

Quicksearch

Ramaze::View::Erubis

View adapter for the Erubis template engine. More information about Erubis can be found here: www.kuwata-lab.com/erubis/

Constants

OPTIONS

Public Class Methods

call(action, string) click to toggle source
    # File lib/ramaze/view/erubis.rb, line 16
16:       def self.call(action, string)
17:         options = OPTIONS.dup
18:         engine = options.delete(:engine)
19: 
20:         eruby = View.compile(string){|s| engine.new(s, options) }
21:         eruby.init_evaluator(:filename => (action.view || __FILE__))
22:         html = eruby.evaluate(action.instance)
23: 
24:         return html, 'text/html'
25:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.