class Tilt::RstPandocTemplate

Pandoc reStructuredText implementation. See: pandoc.org/

Public Instance Methods

allows_script?() click to toggle source
   # File lib/tilt/rst-pandoc.rb
19 def allows_script?
20   false
21 end
evaluate(scope, locals, &block) click to toggle source
   # File lib/tilt/rst-pandoc.rb
15 def evaluate(scope, locals, &block)
16   @output ||= @engine.to_html.strip
17 end
prepare() click to toggle source
   # File lib/tilt/rst-pandoc.rb
10 def prepare
11   @engine = PandocRuby.new(data, :f => "rst")
12   @output = nil
13 end