joker1007/ghost_writer

View on GitHub
lib/ghost_writer/index_writer/markdown.rb

Summary

Maintainability
A
20 mins
Test Coverage
require 'ghost_writer/index_writer/base'

class GhostWriter::IndexWriter
  class Markdown < Base
    private

    def extname
      "md"
    end

    def template
      path = File.join(File.expand_path(File.dirname(__FILE__)), "templates", "markdown.erb")
      ERB.new(File.read(path), nil, "%-")
    end
  end
end