Skip to content

mcantelon/node-dir2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

node.js module to read a directory and render to HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published