Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #194 from caglarcem/patch-1
Browse files Browse the repository at this point in the history
Update readme with `=` syntax description
  • Loading branch information
mquandalle committed Nov 28, 2015
2 parents 759c005 + 9760050 commit 3b6114c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ template(name="leaderboard")
p Welcome #{player.name}
```

If you indent after a div or similar element, you can use `|` symbol in order jade not
to confuse with tags:

```jade
template(name='leaderboard')
#content
| #{greeting}
```

You can also use `=` as a shortcut:
```jade
template(name='leaderboard')
#content
= greeting
```

If you want to insert raw HTML you can use the `!{jade}` syntax which is
equivalent to the triple-braced `{{{spacebars}}}` expression.

Expand Down

0 comments on commit 3b6114c

Please sign in to comment.