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

Version Path
Pistos-ramaze-2008.09 lib/ramaze/template/maruku.rb
Pistos-ramaze-2008.12 lib/ramaze/template/maruku.rb
Pistos-ramaze-2009.01 lib/ramaze/template/maruku.rb
Pistos-ramaze-2009.02 lib/ramaze/template/maruku.rb
manveru-ramaze-2008.08 lib/ramaze/template/maruku.rb
manveru-ramaze-2008.09 lib/ramaze/template/maruku.rb
manveru-ramaze-2008.10 lib/ramaze/template/maruku.rb
manveru-ramaze-2008.12 lib/ramaze/template/maruku.rb
manveru-ramaze-2009.01 lib/ramaze/template/maruku.rb
ptomato-ramaze-2009.02.1 lib/ramaze/template/maruku.rb
ptomato-ramaze-2009.02 lib/ramaze/template/maruku.rb
ramaze-2008.11 lib/ramaze/template/maruku.rb
ramaze-2009.01 lib/ramaze/template/maruku.rb
ramaze-2009.03 lib/ramaze/template/maruku.rb
ramaze-2009.02 lib/ramaze/template/maruku.rb