module Ramaze::View::Lokar

Allows views to use Lokar as the template engine. See the following website for more information: github.com/Zoxc/Lokar

Public Class Methods

call(action, string) click to toggle source
# File lib/ramaze/view/lokar.rb, line 10
def self.call(action, string)
  compiled = View.compile(string){|s| ::Lokar.compile(s, action.view || __FILE__) }
  html = action.instance.instance_eval(&compiled).join

  return html, 'text/html'
end