#BookmarkPage
A gem for making nice webpages out of bookmarks exported from your browser.
##Example
Here is an example of the output with some simple styling and a script for folding/unfolding folders. ##Installation
$ gem install bookmark_page
then
require 'bookmark_page'
##Usage
bmarks = BookmarkPage.new(options)
where
options = { file: 'path/to/exported_bookmarks.html',
assets_dir: 'root/dir/for/js_and_css',
link_class: 'class attribute for links',
folder_class: 'class attribute for <ul>',
folder_head_class: 'class attribute for folder headings'
}
default values
file: 'bookmarks.html',
assets_dir: '.',
link_class: 'link',
folder_class: 'folder',
folder_head_class: 'folder-head'
change file
bmarks.read('new_bookmarks.html')
change assets dir
bmarks.load_assets('new_dir')
produce output
html_out = bmarks.parse