Skip to content

Commit

Permalink
Fixing issues with spike-contentful documentation (#58)
Browse files Browse the repository at this point in the history
* Fix issue with double colons on templates documentation
* Fix issue with single curly braces not expected double
  • Loading branch information
mirshko authored and jescalan committed Feb 23, 2017
1 parent c816716 commit ed23668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ new Contentful({
contentTypes: [{
name: 'posts',
id: '633fTeiMaxxxxxxxxx',
template: : {
template: {
path: 'templates/post.html',
output: (post) => { return `posts/${post.id}.html` }
}
Expand All @@ -191,7 +191,7 @@ new Contentful({
Your template must use the `item` variable as seen below. Note: you also will need to prevent Spike from attempting to render your template file normally by adding your templates to Spike's `ignore` option, or adding an underscore to the file name.

```html
<p>{item.title}</p>
<p>{{item.title}}</p>
```

### JSON Output
Expand Down

0 comments on commit ed23668

Please sign in to comment.