Sha256: d2ebb90b786720d98d37c377c0d6c6922e6493d9564eb30adbd5a27b0c298097
Contents?: true
Size: 400 Bytes
Versions: 21
Compression:
Stored size: 400 Bytes
Contents
module ActionView::Template::Handlers class Textile class_attribute :default_format self.default_format = Mime::HTML def erb_handler @@erb_handler ||= ActionView::Template.registered_template_handler(:erb) end def call(template) compiled_source = erb_handler.call(template) "RedCloth.new(begin;#{compiled_source};end).to_html.html_safe" end end end
Version data entries
21 entries across 21 versions & 2 rubygems