module Ramaze::View::Ezamar
View adapter for the Ezamar template engine. More information about this engine can be found here: github.com/manveru/ezamar
Constants
- TRANSFORM_PIPELINE
Public Class Methods
call(action, string)
click to toggle source
# File lib/ramaze/view/ezamar.rb, line 12 def self.call(action, string) ezamar = View.compile(string){|s| compile(action, s) } html = ezamar.result(action.binding) return html, 'text/html' end
compile(action, template)
click to toggle source
# File lib/ramaze/view/ezamar.rb, line 18 def self.compile(action, template) file = action.view || __FILE__ TRANSFORM_PIPELINE.each{|tp| template = tp.transform(template) } ::Ezamar::Template.new(template, :file => file) end