Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add syntax highlighting to CanJS readme

  • Loading branch information...
commit 8d11ff58a19208c614285e62cac24e947fcafb66 1 parent 4f6768b
@sindresorhus sindresorhus authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 labs/architecture-examples/canjs/readme.md
View
16 labs/architecture-examples/canjs/readme.md
@@ -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'
+ });
+});
+```
Please sign in to comment.
Something went wrong with that request. Please try again.