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
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/tilt-2.0.7/lib/tilt/commonmarker.rb
tilt-2.0.7 lib/tilt/commonmarker.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/tilt-2.0.6/lib/tilt/commonmarker.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/tilt-2.0.6/lib/tilt/commonmarker.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/tilt-2.0.6/lib/tilt/commonmarker.rb