generator-static-website
v0.16.0
Published
Generator to create static websites.
Downloads
14
Readme
generator-static-website
Yeoman generator to create static websites with Stylus, Jade and CoffeeScript.
Installation
Run
npm install -g yo grunt-cli generator-static-website
If you get a permission error, try running npm
with sudo
.
Usage
To create a new website, run
yo static-website MY_WEBSITE
The directory MY_WEBSITE
will be generated.
You can then start coding.
cd MY_WEBSITE
grunt
CSS engine
The default CSS engine is Stylus.
However, you can use less css if you wish, by adding
--css=less
to the yo command:
yo static-website MY_WEBSITE --css=less
HTML template engine
The default HTML template engine is Jade.
However, you can use ejs (with layouts) if you wish, by adding
--html=ejs
to the yo command:
yo static-website MY_WEBSITE --html=ejs
Features
Lorem Ipsum generator: You can use the lorem ipsum generator as the function
lorem
in all Jade/EJS templates:p= lorem({units: 'paragraphs', count: 2})
<%= lorem({units: 'paragraphs', count: 2}) %>