Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
vitkarpov committed Aug 30, 2014
1 parent e29e806 commit c4971a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ Task targets and options may be specified according to the grunt [Configuring ta
```javascript
nunjucks: {
options: {
data: grunt.file.readJSON('data.json')
data: grunt.file.readJSON('data.json'),
paths: 'templates'
},
render: {
files: {
'index.html' : 'templates/index-template.html'
'index.html' : 'index.html'
}
}
}
```

`index.html` is now compiled with `data.json`!
`templates/index.html` (relative to the gruntfile) is now compiled with `data.json`!

```javascipt
nunjucks: {
Expand Down Expand Up @@ -94,4 +95,4 @@ nunjucks: {
}
```

Nice!
Nice!

0 comments on commit c4971a3

Please sign in to comment.