A quick and easy Node.js + Express + Pug + Material Design Lite template project.
Also available for Twitter Bootstrap.
- Clone repository.
- Open a command prompt, navigate to the folder, and enter: npm install
- Next, run the app by entering: node app
- Browse to http://localhost:3000
- layout.pug
- header.pug
- footer.pug
- links.pug
- index.pug
Edit views/index.pug to add your content. The default contents include:
extends layout
block content
.mdl-grid
.mdl-cell.mdl-cell--12-col
h1 Program Name
p Hello World
The template is compatible with all Material Design Lite UI components.
For example, to add a button to the page, edit index.jade and add the snippet:
button.mdl-button.mdl-js-button.mdl-button--raised.mdl-js-ripple-effect.mdl-button--accent
| My Button
Kory Becker http://www.primaryobjects.com/kory-becker