class Kramdown::Converter::Base

def self.apply_template(converter, body) # :nodoc:

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