Module: Ramaze::View::Tenjin

Defined in:
lib/ramaze/view/tenjin.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) call(action, string)



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ramaze/view/tenjin.rb', line 6

def self.call(action, string)
  tenjin = View.compile(string){|s|
    template = ::Tenjin::Template.new
    template.convert(s)
    template
  }

  html = tenjin.ramaze_render(action.binding)

  return html, 'text/html'
end