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