Serenity

Simple static site generation and templating

What is Serenity?

Serenity is a node module which allows you to easily work on static sites. It uses a slightly modified version of EJS so it can use Javascript to do calculations so you can host your site on an efficient static server, instead of using pointless PHP includes or something similar.

It was designed for people who want to use something similar to Jekyll but also provide more detailed error messages, use JSON instead of YAML, use EJS instead of Liquid and be all round more versatile and light. Building websites should be DRY and easy where possible.

How do I use Serenity?

You'll need node and npm installed. Then simply install Serenity globally: $ npm install -g serenity. Then it's as simple as running: $ serenity in your terminal in the root directory of your website. It'll generate a folder called ./_site/ in that directory containing the generated files and serve them from localhost:4000.

But how do I actually use Serenity?

The best way to get aquainted with Serenity is to check out how this site has been made, it's all on GitHub so clone and do as you please. There's also some documentation on the GitHub repo for the module itself.