Sha256: 6fc3c36743734d4e86a1919b14e01565f8dce180e4671e2c8c1bf05334067da1

Contents?: true

Size: 356 Bytes

Versions: 14

Compression:

Stored size: 356 Bytes

Contents

require 'tilt/template'
require 'commonmarker'

module Tilt
  class CommonMarkerTemplate < Template
    self.default_mime_type = 'text/html'

    def prepare
      @engine = nil
      @output = nil
    end

    def evaluate(scope, locals, &block)
      CommonMarker.render_html(data, :DEFAULT)
    end

    def allows_script?
      false
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb
tilt-2.0.8 lib/tilt/commonmarker.rb