module Ramaze::View::Tenjin

Public Class Methods

call(action, string) click to toggle source
# 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