Sha256: 07a821483c323a5dcabcde4c4da096813a70af2ff773e6ac0630d8a77cec9d05
Contents?: true
Size: 819 Bytes
Versions: 15
Compression:
Stored size: 819 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'maruku' module Ramaze module Template # Is responsible for compiling a template using the Ezamar templating engine. class Maruku < Template ENGINES[self] = %w[ mkd ] class << self # Transforms an action into the XHTML code for parsing and returns # the result def transform(action) maruku = wrap_compile(action) maruku.to_html end # Compile a template, applying all transformations from the pipeline # and returning an instance of ::Ezamar::Template def compile(action, template) ::Maruku.new(template) end end end end end
Version data entries
15 entries across 15 versions & 4 rubygems