Sha256: ab8034a758014e20238b9a5d74ae400d5e80d36d84957006b777116d024b306d
Contents?: true
Size: 578 Bytes
Versions: 49
Compression:
Stored size: 578 Bytes
Contents
require 'tilt/template' module Tilt # RedCloth implementation. See: # http://redcloth.org/ class RedClothTemplate < Template def self.engine_initialized? defined? ::RedCloth end def initialize_engine require_template_library 'redcloth' end def prepare @engine = RedCloth.new(data) options.each {|k, v| @engine.send("#{k}=", v) if @engine.respond_to? "#{k}="} @output = nil end def evaluate(scope, locals, &block) @output ||= @engine.to_html end def allows_script? false end end end
Version data entries
49 entries across 42 versions & 11 rubygems