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
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:
Models.Todo.findAll({}, function(todos) {
new Todos('#todoapp', {
todos: todos,
state : can.route,
view : 'views/todos.ejs'
});
});
```js
Models.Todo.findAll({}, function(todos) {
new Todos('#todoapp', {
todos: todos,
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