Skip to content

Commit

Permalink
Syntax highlight for the reactive-dict README example
Browse files Browse the repository at this point in the history
  • Loading branch information
dandv authored and Sashko Stubailo committed Feb 9, 2015
1 parent d07ff8e commit 63d069e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/reactive-dict/README.md
Expand Up @@ -11,13 +11,14 @@ If you provide a name to its constructor, its contents will be saved across Hot
Code Push client code updates.

Example usage:
```
> var dict = new ReactiveDict('myDict');
> dict.set("weather", "cloudy");
> Tracker.autorun(function () { console.log("now " + dict.get("weather")); });
now cloudy
> dict.set("weather", "sunny");
now sunny

```js
var dict = new ReactiveDict('myDict');
dict.set("weather", "cloudy");
Tracker.autorun(function () { console.log("now " + dict.get("weather")); });
// now cloudy
dict.set("weather", "sunny");
// now sunny
```

For more information, see the [Tracker project
Expand Down

0 comments on commit 63d069e

Please sign in to comment.