Module: Innate::View::Etanni
- Defined in:
- lib/innate/view/etanni.rb
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/innate/view/etanni.rb', line 4 def self.call(action, string) etanni = View.compile(string) do |str| filename = action.view || action.method Innate::Etanni.new(str, filename) end html = etanni.result(action.instance) return html, Response.mime_type end |