Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Latest commit

 

History

History

htmlout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
layout title permalink
page
HTMLOut Module
/modules/htmlout/

HTMLOut Module

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).