pcjs/my_modules/htmlout
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-09-27 14:52:57 -07:00
..
bin Initial commit (a clone of the jsmachines project as of v1.15.3) 2014-09-27 14:52:57 -07:00
lib Initial commit (a clone of the jsmachines project as of v1.15.3) 2014-09-27 14:52:57 -07:00
package.json Initial commit (a clone of the jsmachines project as of v1.15.3) 2014-09-27 14:52:57 -07:00
README.md Initial commit (a clone of the jsmachines project as of v1.15.3) 2014-09-27 14:52:57 -07:00

HTMLOut

This module provides a filter() function for server.js, our Express-based web server. The function is installed like so:

app.use(HTMLOut.filter);

The filter function examines the URL, and if it corresponds to a directory on the server, the function will generate an "index.html" in that directory, based on the contents of a default template file (currently common.html).