Commit 8d11ff58 authored by Sindre Sorhus's avatar Sindre Sorhus

Add syntax highlighting to CanJS readme

parent 4f6768b7
...@@ -31,10 +31,12 @@ CanJS supports both live binding [EJS](http://canjs.us/#can_ejs) and [Mustache/H ...@@ -31,10 +31,12 @@ CanJS supports both live binding [EJS](http://canjs.us/#can_ejs) and [Mustache/H
templates. By default the Mustache view will be used but an EJS example is available as well. templates. By default the Mustache view will be used but an EJS example is available as well.
You can easily change it by modifying the `view` option in the `js/app.js` file: You can easily change it by modifying the `view` option in the `js/app.js` file:
Models.Todo.findAll({}, function(todos) { ```js
new Todos('#todoapp', { Models.Todo.findAll({}, function(todos) {
todos: todos, new Todos('#todoapp', {
state : can.route, todos: todos,
view : 'views/todos.ejs' state : can.route,
}); view : 'views/todos.ejs'
}); });
});
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment