1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-29 03:51:17 +02:00

Update guide

This commit is contained in:
Elisabeth Henry 2017-06-11 10:47:00 +02:00
parent 48d8041995
commit 0305d92f72

@ -93,6 +93,26 @@ Markdown code, you can use the `{{...}}` syntax:
@"Hello, {{name}}"@
```
## Conditional blocks
Sometimes, you want some text (or Javascript code) to only be
displayed (or run) when the reader reads this passage the first time,
or alternatively when she goes back to it. While it is trivial to add
some code to check that, it is a common enough pattern to justify its
own variant : you'll juste have to insert a named code block with the number:
```1
@"Only displayed at first passage"@
```
```2
@"Only displayed at second passage"@
```
```>2
@"Displayed at passage 3, 4 and so on.
```
## Interactive fiction options
As other renderers, there are options specific to the interactive