class Kramdown::Converter::Base

def self.apply_template(doc, body)

Apply the template specified in the +doc+ options, using +body+ as the body string.
def self.apply_template(doc, body)
  erb = ERB.new(get_template(doc.options[:template]))
  obj = Object.new
  obj.instance_variable_set(:@doc, doc)
  obj.instance_variable_set(:@body, body)
  erb.result(obj.instance_eval{binding})
end