Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.13 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.13 KB

renderview.js - A simple static page generator

About

renderview.js is a simple and easy to use static page generator built with Node.JS.

Philosophy

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.

Demo

My github page is using renderView.JS. Check out the repository.

Requirements

You need Node.JS and npm

Setup

  • Install dependencies with npm: npm install showdown jsdom js-beautify glob

Usage

  • 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.