renderview.js is a simple and easy to use static page generator built with Node.JS.
The philosopy of renderView.JS is simple: You write your content in Markdown and add a <div>
inside your html. Divs must have an id the filename(without the extension) of the the Markdown file. Lastly, build your page running app.js
.
My github page is using renderView.JS. Check out the repository.
- Install dependencies with npm:
npm install showdown jsdom js-beautify glob
- Write your content and save it, e.g.
intro.md
- Inside your html(index.html, add a div with an id "intro":
<div id="intro"></div>
- Run app.js with node:
node app.js
Done.
Congratulations! Now check the _public
directory
Please note that for each Markdown file you have inside the root directory, there must be a div with the corresponding id.