pcjs/modules/htmlout
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2017-06-26 11:05:01 -07:00
..
bin v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
lib Changed the onclick handlers for Keyboard CLICKCODES to let updateFocus() scroll the canvas into view as needed, because (at least on iOS) the code that tries prevent the page from scrolling has an annoying "jerking" side-effect; also fixed the old Node web server code that would install onclick handlers for disk images, triggering automatic conversion of JSON to IMG files 2017-06-26 11:05:01 -07:00
package.json Replaced loadResource() with the more streamlined getResource(), for all your resource-getting needs (well, except for binary files, which should be coming soon) 2016-02-21 15:51:54 -08:00
README.md Updated aspect ratio for CGA configs and added experimental 'aspect' URL parameter 2016-04-01 21:36:06 -07:00

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