The core idea of Gaunt is that it maximizes the beauty of your markup.
Here is an example of Gaunt markup:
As you can see, the markup is a mix of tabs and spaces, each tab representing a binary 0 and each space representing a binary 1. The zeroes and ones get rendered to utf-8 encoded characters, and voilà: your template is rendered. (This particular markup simply renders out to "Hello world!")
Tabs are 0s
Spaces are 1s
To use programmatically with Node.js:
$ npm install gaunt-render
var gaunt = require('gaunt-render'); var renderedOutput = gaunt( ' ' + ' ' + ' ' + ' '); // "test"
To use from the command line:
$ npm install -g gaunt-render # Input file(s) $ gaunt path/to/file # From standard in $ cat index.gtf | gaunt
You only have to remember two characters to use Gaunt. Its simplicity is unparalleled.
You can render any utf-8 string with Gaunt. Its versatility means you can break the bonds of HTML and do whatever you need.
Reading a Gauntfile is like looking at a Suprematist composition by Malevich, or listening to John Cage's 4'33". Its beauty is transcendent.