Sha256: c83daa0b76ba2fb91871eef5d54e0d3f785b2928fc3644ec6f82254dde7a6cbc
Contents?: true
Size: 633 Bytes
Versions: 3
Compression:
Stored size: 633 Bytes
Contents
require 'redcloth' module Ramaze module Template # Is responsible for compiling a template using the RedCloth templating engine. # Can be found at: http://whytheluckystiff.net/ruby/redcloth/ class RedCloth < Erubis ENGINES[self] = %w[ redcloth ] class << self 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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | lib/ramaze/template/redcloth.rb |
ramaze-0.3.9.1 | lib/ramaze/template/redcloth.rb |
ramaze-0.3.9 | lib/ramaze/template/redcloth.rb |