class Epubber::Generators::Toc

Public Instance Methods

generate() click to toggle source
# File lib/epubber/generators/toc.rb, line 5
def generate
  content = template.parse file: 'OEBPS/toc.ncx', context: book_context
  persist file: 'OEBPS/toc.ncx', content: content

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