class Kramdown::Converter::Base
def self.get_template(template) # :nodoc:
Return the template specified by +template+.
def self.get_template(template) # :nodoc: format_ext = '.' + self.name.split(/::/).last.downcase shipped = File.join(::Kramdown.data_dir, template + format_ext) if File.exist?(template) File.read(template) elsif File.exist?(template + format_ext) File.read(template + format_ext) elsif File.exist?(shipped) File.read(shipped) else raise "The specified template file #{template} does not exist" end end