Almost the same as project-stub but with BEMTREE and Express.
npm i
enb make
npm run watch
nodemon
YENV=production enb make
node server
Templating starts in root
block which replaces itself with page
or any other context (if specified as argument to render
function).
Run server in dev mode with NODE_ENV=development
environment variable (nodemon
will set it for you).
In dev mode
- Add
?json=1
to URL to see raw data - Add
?bemjson=1
to URL to see BEMJSON generated with BEMTREE templates.