Sha256: 4ee32779fde99db4e4cf66f840245711e32084f6a9062ccd0829b92d7103f94c
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
module Klipbook module Commands module Exporters class MarkdownExporter < Exporter def render_contents(book) ERB.new(template, 0, '%<>').result(book.get_binding) end def extension "md" end def template @template ||= File.read(File.join(File.dirname(__FILE__), 'markdown_book_summary.erb')) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
klipbook-4.0.0 | lib/klipbook/commands/exporters/markdown_exporter.rb |
klipbook-3.0.0 | lib/klipbook/commands/exporters/markdown_exporter.rb |