Sha256: cfe90e8258aef91b348816887fd21376c5f4174554b8d6d042380cd465fcbb97

Contents?: true

Size: 261 Bytes

Versions: 7

Compression:

Stored size: 261 Bytes

Contents

require 'maruku'

module Ramaze
  module View
    module Maruku
      def self.call(action, string)
        string = File.read(action.view) if action.view
        html = ::Maruku.new(string).to_html

        return html, 'text/html'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
Pistos-ramaze-2009.04.08 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.04.01 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.04.08 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.04.18 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.04.22 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.04 lib/ramaze/view/maruku.rb
ramaze-2009.04 lib/ramaze/view/maruku.rb