Content and build toolchain for Nim by Example, a site that teaches Nim via annotated example programs.
The Nim by Example site is built by extracting code and comments from source files in examples and rendering them via the templates into a static public directory.
The source code implementing this build process is in src directory.
The built public directory can be served by any static content system.
To build the site you'll need Node installed.
First, install the dependencies by running:
$ npm installTo run the build once:
$ npm run buildTo keep building on file changes:
$ npm run watchNim files can be checked for corectness:
$ npm run build testNimTo generate out files from Nim source code:
$ npm run build outputNimContents of this repository are licensed under Creative Commons Attribution 3.0 Unported License.
Thanks to Mark McGranaghan for Go by Example, which inspired this project.