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

Version Path
ecm_cms2-1.1.1 lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms2-1.1.0 lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms2-1.0.1 lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.5.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms2-1.0.0 lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.4.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.3.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.2.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.1.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-1.0.0.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.13.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.11.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.10.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.8.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.7.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.6.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.5.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.4.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.3.pre lib/ecm/cms/action_view/template/handlers/textile.rb
ecm_cms-0.0.2.pre lib/ecm/cms/action_view/template/handlers/textile.rb