Module: Ramaze::View::Maruku

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

Class Method Summary collapse

Class Method Details

.call(action, string) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ramaze/view/maruku.rb', line 6

def self.call(action, string)
  string = File.read(action.view) if action.view
  maruku = View.compile(string){|s| ::Maruku.new(s) }
  html = maruku.to_html

  return html, 'text/html'
end