Sha256: e15b7247f21fc9c013b098780973ce4db96f7f15a3b8c078f395b75e0731fafc

Contents?: true

Size: 452 Bytes

Versions: 199

Compression:

Stored size: 452 Bytes

Contents

require 'tilt/template'
require 'redcloth'

module Tilt
  # RedCloth implementation. See:
  # http://redcloth.org/
  class RedClothTemplate < Template
    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

199 entries across 160 versions & 28 rubygems

Version Path
brakeman-5.1.1 bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb
brakeman-5.1.0 bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
brakeman-5.0.4 bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb
brakeman-5.0.2 bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/lib/tilt/redcloth.rb
brakeman-5.0.1 bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb