Skip to content

Commit

Permalink
Misc readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed May 19, 2013
1 parent 4cf0410 commit 3aef7f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ In general, the syntax of Handlebars.js templates is a superset
of Mustache templates. For basic syntax, check out the [Mustache
manpage](http://mustache.github.com/mustache.5.html).

Once you have a template, use the Handlebars.compile method to compile
Once you have a template, use the `Handlebars.compile` method to compile
the template into a function. The generated function takes a context
argument, which will be used to render the template.

Expand Down Expand Up @@ -93,17 +93,17 @@ templates easier and also changes a tiny detail of how partials work.
Handlebars.js supports an extended expression syntax that we call paths.
Paths are made up of typical expressions and . characters. Expressions
allow you to not only display data from the current context, but to
display data from contexts that are descendents and ancestors of the
display data from contexts that are descendants and ancestors of the
current context.

To display data from descendent contexts, use the `.` character. So, for
To display data from descendant contexts, use the `.` character. So, for
example, if your data were structured like:

```js
var data = {"person": { "name": "Alan" }, company: {"name": "Rad, Inc." } };
```

you could display the person's name from the top-level context with the
You could display the person's name from the top-level context with the
following expression:

```
Expand Down

0 comments on commit 3aef7f6

Please sign in to comment.