Class: Ramaze::Template::Maruku

Inherits:
Template show all
Defined in:
lib/ramaze/template/maruku.rb

Overview

Is responsible for compiling a template using the Ezamar templating engine.

Class Method Summary collapse

Methods inherited from Template

caching_compile, reaction_or_file, render_method, result_and_file, wrap_compile

Methods included from Helper::Methods

extend_object, #helper, included

Class Method Details

.compile(action, template) ⇒ Object

Compile a template, applying all transformations from the pipeline and returning an instance of ::Ezamar::Template



27
28
29
# File 'lib/ramaze/template/maruku.rb', line 27

def compile(action, template)
  ::Maruku.new(template)
end

.transform(action) ⇒ Object

Transforms an action into the XHTML code for parsing and returns the result



19
20
21
22
# File 'lib/ramaze/template/maruku.rb', line 19

def transform(action)
  maruku = wrap_compile(action)
  maruku.to_html
end