Fixed README whitespace issue.

This commit is contained in:
Elf M. Sternberg 2013-04-17 10:16:46 -07:00
parent a28a1f5d36
commit 95a0873157
1 changed files with 22 additions and 19 deletions

View File

@ -43,11 +43,11 @@ field is populated, and show nothing if it isn't.
If your datasource returns:
obj = { "name": "Mr. Smith"}
obj = { "name": "Mr. Smith"}
Then your template would use:
{if:name}Hello {name}!{/if:name}
{if:name}Hello {name}!{/if:name}
### Block
@ -60,13 +60,13 @@ render "next/prev" blocks in a webcomic.
If your datasource returns:
obj = { "next": {"title": "The Next Story"},
obj = { "next": {"title": "The Next Story"},
"prev": {"title": "The Previous Story"}}
Then your template would use:
{block:next}The next story is entitled {title}{/block:next}
{block:prev}The next story is entitled {title}{/block:prev}
{block:next}The next story is entitled {title}{/block:next}
{block:prev}The next story is entitled {title}{/block:prev}
### Many
@ -81,7 +81,7 @@ series of titles in a series:
If your datasource returns:
obj = {
obj = {
"series":
[ {"title": "A Story"},
{"title": "A Second Story"},
@ -105,7 +105,7 @@ The Tumble parser is intended to render a website for series and
stories. Both of which have titles, so you might have an object that
says:
obj = {
obj = {
title: "An awesome series",
author: "Twilight Sparkle",
stories: [{title: "The first awesome story"},
@ -133,6 +133,9 @@ The first "title" will be the series title, but the titles in the
not have an "author" block, the context will scan up to the parent
scope and find the author's name.
See the unit tests for more examples. Run them to see that this
actually works as described.
## Requirements
nodejs & npm.