Module: Ramaze::View::Gestalt

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

Overview

View adapter that allows you to use Ramaze::Gestalt in your views. See the documentation of Ramaze::Gestalt for more information.

See Also:

Class Method Summary collapse

Class Method Details

.call(action, string) ⇒ Object



12
13
14
15
16
17
# File 'lib/ramaze/view/gestalt.rb', line 12

def self.call(action, string)
  string = action.instance.instance_eval(string) if action.view
  html = [string].join

  return html, 'text/html'
end