Sha256: e59f2b4bdd9eca754480e4c95615731cd76a4fe1d9e018a2c484cfe09dd160c2

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true
require_relative 'template'
require 'creole'

allowed_opts = [:allowed_schemes, :extensions, :no_escape].freeze

# Creole implementation. See: http://www.wikicreole.org/
Tilt::CreoleTemplate = Tilt::StaticTemplate.subclass do
  opts = {}
  allowed_opts.each do |k|
    opts[k] = @options[k] if @options[k]
  end
  Creole::Parser.new(@data, opts).to_html
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
brakeman-6.2.2 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/creole.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/tilt-2.4.0/lib/tilt/creole.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/creole.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/creole.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/tilt-2.4.0/lib/tilt/creole.rb
tilt-2.4.0 lib/tilt/creole.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/tilt-2.3.0/lib/tilt/creole.rb
tilt-2.3.0 lib/tilt/creole.rb
tilt-2.2.0 lib/tilt/creole.rb