Sha256: d6ea35e8f9acb57ad6f9b2c93758727ce781c3b6e6113c144293bc1d3f900768
Contents?: true
Size: 450 Bytes
Versions: 132
Compression:
Stored size: 450 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) @output = nil end def evaluate(scope, locals, &block) @output ||= @engine.to_html end end end
Version data entries
132 entries across 115 versions & 18 rubygems