node.js module to read a directory and render to HTML
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
public/images
LICENSE
README
example.js
package.json

README

node-directory-view
-------------------

Node-directory-view is a Javascript class that uses node.js to read a directory
and render it to HTML.

Directories can be set to be "closed" by default or "open". Children of "open"
directories will be rendered.

The example shows the use of a session variable (sessions implemented using
another project) to toggle the "closed"/"open" states of individual
directories.

The example requires Connect for session support:

  http://senchalabs.github.com/connect/

Install:
# git clone http://github.com/mcantelon/node-directory-view.git
# cd node-directory-view

Run:
# node example.js

Tested with node.js v0.2.0

(c) 2010 Mike Cantelon, GPL license