Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 397 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 397 Bytes

Introducing the HTMLbook gem

Usage

require 'htmlbook'

book = HtmlBook.new('/tmp/page.html')
book.build
puts book.to_html

This gem attempts to make an HTML document easier to print like a book by splitting the content in pages based on the accumulated height of HTML elements.

Resources

htmlbook gem html book page pages