Class: ActionView::Template::Handlers::Textile

Inherits:
Object
  • Object
show all
Defined in:
lib/ecm/cms/action_view/template/handlers/textile.rb

Instance Method Summary collapse

Instance Method Details

#call(template) ⇒ Object



10
11
12
13
# File 'lib/ecm/cms/action_view/template/handlers/textile.rb', line 10

def call(template)
  compiled_source = erb_handler.call(template)
  "RedCloth.new(begin;#{compiled_source};end).to_html.html_safe"
end

#erb_handlerObject



6
7
8
# File 'lib/ecm/cms/action_view/template/handlers/textile.rb', line 6

def erb_handler
  @@erb_handler ||= ActionView::Template.registered_template_handler(:erb)
end