Sha256: bacff55f69221ce2dd058b2182c4e07480f82c9ad8a6e49bb4195fe14e65ef56

Contents?: true

Size: 352 Bytes

Versions: 14

Compression:

Stored size: 352 Bytes

Contents

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

# RedCloth implementation. See: https://github.com/jgarber/redcloth
Tilt::RedClothTemplate = Tilt::StaticTemplate.subclass do
  engine = RedCloth.new(@data)
  @options.each  do |k, v|
    m = :"#{k}="
    engine.send(m, v) if engine.respond_to? m
  end
  engine.to_html
end

Version data entries

14 entries across 13 versions & 5 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
tilt-2.6.0 lib/tilt/redcloth.rb
brakeman-7.0.0 bundle/ruby/3.1.0/gems/tilt-2.5.0/lib/tilt/redcloth.rb
tilt-2.5.0 lib/tilt/redcloth.rb
brakeman-6.2.2 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/tilt-2.4.0/lib/tilt/redcloth.rb
tilt-2.4.0 lib/tilt/redcloth.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/tilt-2.3.0/lib/tilt/redcloth.rb
tilt-2.3.0 lib/tilt/redcloth.rb
tilt-2.2.0 lib/tilt/redcloth.rb