Sha256: 6fef674c425974f4e3e2de77fa4f111d493affe55f10d1c6eae61b5322034613
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require 'tilt' require 'creole' module Creole class Template < Tilt::Template def prepare opts = {} [:allowed_schemes, :extensions, :no_escape].each do |k| opts[k] = options[k] if options[k] end @creole = Creole::Parser.new(data, opts) @output = nil end def evaluate(scope, locals, &block) @output ||= @creole.to_html end end end Tilt.register 'creole', Creole::Template
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
creole-0.4.1 | lib/creole/template.rb |