Sha256: ea5179c02b82c68acc686d56ca69cea9a8fdbb069424e2a67ee94c5a83ba2e5d

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

require 'tilt/template'
require 'bluecloth'

warn "Tilt::BlueClothTemplate is deprecated, please switch to a different markdown implementation"

module Tilt
  # BlueCloth Markdown implementation. See:
  # http://deveiate.org/projects/BlueCloth/
  class BlueClothTemplate < Template
    self.default_mime_type = 'text/html'

    def prepare
      @engine = BlueCloth.new(data, options)
      @output = nil
    end

    def evaluate(scope, locals, &block)
      @output ||= @engine.to_html
    end

    def allows_script?
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tilt-2.1.0 lib/tilt/bluecloth.rb