Sha256: 9674c84fbef15c32f2b873645333f7d49e95369db0f60d1a9771b44cf0441c5a

Contents?: true

Size: 356 Bytes

Versions: 44

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

44 entries across 43 versions & 13 rubygems

Version Path
brakeman-3.5.0 bundle/ruby/2.3.0/gems/tilt-2.0.6/lib/tilt/commonmarker.rb
tilt-2.0.6 lib/tilt/commonmarker.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/commonmarker.rb