Module: Ramaze::View::Nagoro
- Includes:
- Optioned
- Defined in:
- lib/ramaze/view/nagoro.rb
Overview
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ramaze/view/nagoro.rb', line 24 def self.call(action, string) = { :pipes => .pipes, :filename => action.view, :binding => action.binding, :variables => action.variables } = .merge(action.) if .tidy html = ::Nagoro.tidy_render(string.to_s, ) else html = ::Nagoro.render(string.to_s, ) end return html, 'text/html' end |