Skip to content

Commit

Permalink
Install insctuctions
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed Jan 4, 2015
1 parent 2b2d912 commit 2fc957e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# IDE
.idea
*.iml

# Logs
logs
*.log
Expand Down
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
sourcejs-jade
=============
Jase support for SourceJS
===============

Jade support for NodeJS
[SourceJS](http://sourcejs.com) middleware to support [Jade](http://jade-lang.com/) markup language (`*.jade`) instead of native `*.src`.

## Install

To install, run npm in `sourcejs/user` folder:

```
npm install sourcejs-jade --save
```

Then restart your SourceJS application, middleware will be loaded automatically.

## Usage

After installing middleware, instead of `index.src` pages, you can `index.jade` files with Jade markup.

index.jade

```
h1 Jade - node template engine
#container.col
p.
Jade is a terse and simple
templating language with a
strong focus on performance
and powerful features.
```
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sourcejs-jade",
"version": "0.0.0",
"version": "0.0.1",
"description": "Jade support for SourceJS",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 2fc957e

Please sign in to comment.