Node simple no db flat file server
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
copy
lib
media/css
LICENSE
README.md
index.js
router.js
server.js
view.js

README.md

Every page has:

  • An entry in config/urls.js.

Example:

"ID" : {
    "url" : "/paths/to", // the http path
    "filename" : "file", // the file on disk
    "title" : "My Page title" // the page's title
}
  • An html file (with optional mustache templating)
  • An optional json template file to construct the mustache template object (if this is not specified, only the default template will be used (which is just the title!)

Media is served, can be configured in config/config.js

The json file can be accessed via e.g. /api/path/to