Skip to content

Commit cfc7de8

Browse files
committed
Fix typos
1 parent b7db864 commit cfc7de8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ contains the data and code needed to render the template.
4949

5050
A [mustache](http://mustache.github.com/) template is a string that contains
5151
any number of mustache tags. Tags are indicated by the double mustaches that
52-
surround them. *{{person}}* is a tag, as is *{{#person}}*. In both examples we
53-
refer to *person* as the tag's key.
52+
surround them. `{{person}}` is a tag, as is `{{#person}}`. In both examples we
53+
refer to `person` as the tag's key.
5454

5555
There are several types of tags available in mustache.js.
5656

5757
### Variables
5858

59-
The most basic tag type is a simple variable. A *{{name}}* tag renders the value
60-
of the *name* key in the current context. If there is no such key, nothing is
59+
The most basic tag type is a simple variable. A `{{name}}` tag renders the value
60+
of the `name` key in the current context. If there is no such key, nothing is
6161
rendered.
6262

6363
All variables are HTML-escaped by default. If you want to render unescaped HTML,
64-
use the triple mustache: *{{{name}}}*. You can also use *&* to unescape a
64+
use the triple mustache: `{{{name}}}`. You can also use `&` to unescape a
6565
variable.
6666

6767
Template:
@@ -115,15 +115,15 @@ Output:
115115
Sections render blocks of text one or more times, depending on the value of the
116116
key in the current context.
117117

118-
A section begins with a pound and ends with a slash. That is, *{{#person}}*
119-
begins a *person* section, while *{{/person}}* ends it. The text between the two
118+
A section begins with a pound and ends with a slash. That is, `{{#person}}`
119+
begins a `person` section, while `{{/person}}` ends it. The text between the two
120120
tags is referred to as that section's "block".
121121

122122
The behavior of the section is determined by the value of the key.
123123

124124
#### False Values or Empty Lists
125125

126-
If the *person* key exists and has a value of `null`, `undefined`, or `false`,
126+
If the `person` key exists and has a value of `null`, `undefined`, or `false`,
127127
or is an empty list, the block will not be rendered.
128128

129129
Template:
@@ -145,7 +145,7 @@ Output:
145145

146146
#### Non-Empty Lists
147147

148-
If the *person* key exists and is not `null`, `undefined`, or `false`, and is
148+
If the `person` key exists and is not `null`, `undefined`, or `false`, and is
149149
not an empty list the block will be rendered one or more times.
150150

151151
When the value is a list, the block is rendered once for each item in the list.
@@ -298,7 +298,7 @@ They also inherit the calling context. Whereas in ERB you may have this:
298298

299299
Mustache requires only this:
300300

301-
{{> next_more}}
301+
{{> next_more}}
302302

303303
Why? Because the `next_more.mustache` file will inherit the `size` and `start`
304304
variables from the calling context. In this way you may want to think of

0 commit comments

Comments
 (0)