Skip to content

Commit

Permalink
Add sugar-free option to looping in Contentful (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirshko authored and jescalan committed Feb 23, 2017
1 parent beb0e5d commit c816716
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ ul
each(loop='post of contentful.posts')
li {{ JSON.stringify(post) }}
```
For the sugar-free
``` html
<ul>
<each loop="post of contentful.blog">
<li>{{ JSON.stringify(post) }}</li>
</each>
</ul>
```

### Filters

Expand Down

0 comments on commit c816716

Please sign in to comment.