Static Base
A small functional toolset for building static websites.
Check out static-base-contrib
for some pre-build functions.
A simple example
; '**/*.markdown' process ;
Documentation
http://icidasset.github.io/static-base
A detailed example and explanation
Note: This example uses functions from static-base-contrib, but the explanation should be easy enough to understand without any knowledge of the contrib library.
/** * Make a dictionary. * * Which is essentially a collection of objects that contain * the path to each file that matches the given glob pattern. */const articles = 'articles/**/*.md' /* glob pattern that selects all articles */ process /* path to the root directory of this project */; /** * Build collections and store them in the metadata, * so that each file has a reference to the other files. * Then render their layout and write them to disk. */Promiseall articles;
Development
npm installnpm test # run tests npm compile # compile es6 src code npm run docs # generate documentation