Sha256: 3f8fafbc0246a5fd2f5a120214a8bb2c53a06af7e622b76f11bbeaea3519ffe3
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require 'pandoc-ruby' module WriteDown module Model class Slide < Base def render template = File.expand_path('../../erb/slide.erb', __FILE__) html_string = ERB.new(File.read(template)).result(binding) end def body PandocRuby.convert(@content, { f: :org, to: :html5}, 'no-highlight') end def build output = Pathname.new(@target_file) output.dirname.mkpath final_content = render output.write(final_content) self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
write_down-0.2.2 | lib/write_down/model/slide.rb |