0.0
No commit activity in last 3 years
No release in over 3 years
BookmarkPage creates nice looking web pages from bookmarks exported from your browser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

#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