Sample .jsn file:
var thatMuch = '@how.awesome';alertthatMuch;
You will need to install jsn, you can do that directly from npm
npm install jsn
In your Node.JS code, you can parse these variables by accessing the jsn compiler.
var jsn = require'jsn';jsnparsesource how: awesome: 'well, very much, tee-hee!'iferrthrow err;console.logjs; // valid js.;
You can alternatively use
jsn.parseFile(path, model, callback) to use a template file directly, instead.
To keep things simple, JSN supports only context variable names with [A-z], [0-9], -, or _ characters.
@ characters can be escaped using