Skip to content

claudetech/generator-static-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}) %>