Class: Ramaze::Template::RedCloth
- Defined in:
- lib/ramaze/template/redcloth.rb
Overview
Is responsible for compiling a template using the RedCloth templating engine. Can be found at: whytheluckystiff.net/ruby/redcloth/
Class Method Summary collapse
-
.transform(action) ⇒ Object
Take the action and directly transform it into html by RedCloth.
Methods inherited from Erubis
Methods inherited from Template
caching_compile, reaction_or_file, render_method, result_and_file, wrap_compile
Methods included from Helper::Methods
extend_object, #helper, included
Class Method Details
.transform(action) ⇒ Object
Take the action and directly transform it into html by RedCloth
14 15 16 17 18 19 20 21 |
# File 'lib/ramaze/template/redcloth.rb', line 14 def transform(action) restrictions = action.controller.trait[:redcloth_options] || [] rules = action.controller.trait[:redcloth_options] || [] # Erubis -> RedCloth -> HTML redcloth = ::RedCloth.new(super, restrictions) redcloth.to_html(*rules) end |