A simple website generator.
npm install -g simple-site.
Simple-site recursively processes all files in the current directory and outputs them into an output directory. Depending on the file extension, different actions take place.
*.mdapply the contents to the given template (see below).
*.htmlapply possibly existing handlebar
A simple .md file looks like this:
title: Hello site!author: Joe Doedate: 2017-03-17template: _templates/simple.html---Here some *markdown* content.
the corresponding template
simple.html would be:
Configuration parameters can be defined on the command line
simple-site build --outputDir=dist or in a file named
All parameters are available in handlebar tags.
The following parameters exist:
outputDir The output directory. Default:
exclude File patterns that should excluded from processing (by default all files starting with _ or . are already excluded).
watch When present, all files are watched and processed on change, the output directory is served on port 8111.
.js files in
_plugins are read and processed at the begin of the process.