Sha256: 99945fcc6fb1a7519f20f6f6ad4d22ca5562453696f56f7680cbf66cf6b3a246

Contents?: true

Size: 307 Bytes

Versions: 22

Compression:

Stored size: 307 Bytes

Contents

require 'maruku'

module Ramaze
  module View
    module Maruku
      def self.call(action, string)
        string = File.read(action.view) if action.view
        maruku = View.compile(string){|s| ::Maruku.new(s) }
        html = maruku.to_html

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

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
Pistos-ramaze-2009.06.12 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.05.08 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.05 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.06.04 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.06.12 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.06 lib/ramaze/view/maruku.rb
manveru-ramaze-2009.07 lib/ramaze/view/maruku.rb
rjspotter-ramaze-2009.06.29 lib/ramaze/view/maruku.rb
rjspotter-ramaze-2009.06.31 lib/ramaze/view/maruku.rb
ramaze-2011.01.30 lib/ramaze/view/maruku.rb
ramaze-2011.01 lib/ramaze/view/maruku.rb
ramaze-2010.06.18 lib/ramaze/view/maruku.rb
ramaze-2010.04.04 lib/ramaze/view/maruku.rb
ramaze-2010.04 lib/ramaze/view/maruku.rb
ramaze-2010.03 lib/ramaze/view/maruku.rb
ramaze-2010.01 lib/ramaze/view/maruku.rb
ramaze-2009.10 lib/ramaze/view/maruku.rb
ramaze-2009.07 lib/ramaze/view/maruku.rb
ramaze-2009.05 lib/ramaze/view/maruku.rb
ramaze-2009.06.04 lib/ramaze/view/maruku.rb