Browse files

updating steal call and using unescaped version (<%==) of EJS tag

  • Loading branch information...
1 parent 25ce3e6 commit a419725ec5f11720dbe55b8f33a5a1250dd02876 @polgfred polgfred committed Sep 7, 2011
Showing with 8 additions and 8 deletions.
  1. +1 −1 todo/index.html
  2. +1 −1 todo/todo.html
  3. +6 −6 todo/todo.js
View
2 todo/index.html
@@ -18,7 +18,7 @@
<script type='text/ejs' id='todosEJS'>
<% for(var i =0; i < this.length ; i++){ %>
<li <%= this[i]%>>
- <%= $.View('todoEJS',this[i] ) %>
+ <%== $.View('todoEJS',this[i] ) %>
</li>
<% } %>
</script>
View
2 todo/todo.html
@@ -17,7 +17,7 @@
<script type='text/ejs' id='todosEJS'>
<% for(var i =0; i < this.length ; i++){ %>
<li <%= this[i]%>>
- <%= $.View('todoEJS',this[i] ) %>
+ <%== $.View('todoEJS',this[i] ) %>
</li>
<% } %>
</script>
View
12 todo/todo.js
@@ -1,10 +1,10 @@
// Load what we need
-steal.css('todo')
- .plugins('jquery/model/list',
- 'jquery/controller',
- 'jquery/view/ejs',
- 'jquery/lang/json')
- .then(function($){
+steal('jquery/model/list',
+ 'jquery/controller',
+ 'jquery/view/ejs',
+ 'jquery/lang/json')
+ .then('./todo.css')
+ .then(function($){
/**
* A todo model for CRUDing todos.

0 comments on commit a419725

Please sign in to comment.