Sha256: a17a1de93aa2417414cde5d8722d535e5cc8bd5685765c83cc0cdf8db0903eed

Contents?: true

Size: 433 Bytes

Versions: 11

Compression:

Stored size: 433 Bytes

Contents

require 'epubber/generators/generator'

module Epubber::Generators
  class Endnotes < Generator
    def generate
      # Because this is an optional generator, don't do anything if there's no
      # introduction in the book
      return if book.endnotes.nil?

      content = template.parse file: 'OEBPS/Text/endnotes.xhtml', context: book_context
      persist file: 'OEBPS/Text/endnotes.xhtml', content: content
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
epubber-0.2.0 lib/epubber/generators/endnotes.rb
epubber-0.1.5 lib/epubber/generators/endnotes.rb
epubber-0.1.4 lib/epubber/generators/endnotes.rb
epubber-0.1.3 lib/epubber/generators/endnotes.rb
epubber-0.1.2 lib/epubber/generators/endnotes.rb
epubber-0.1.1 lib/epubber/generators/endnotes.rb
epubber-0.1.0 lib/epubber/generators/endnotes.rb
epubber-0.0.4 lib/epubber/generators/endnotes.rb
epubber-0.0.3 lib/epubber/generators/endnotes.rb
epubber-0.0.2 lib/epubber/generators/endnotes.rb
epubber-0.0.1 lib/epubber/generators/endnotes.rb