Permalink
Browse files

partials examples updated for $vars going away

  • Loading branch information...
1 parent dbc843c commit fb8dfd37655f4682405b96a640b860e2411b6ca0 @substack committed Jul 8, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 example/partials/static/main.js
  2. +1 −1 example/partials/views/body.jade
  3. +2 −2 example/partials/views/msg.jade
@@ -18,8 +18,8 @@ $(window).ready(function () {
}).appendTo($('#messages'));
setTimeout(function () {
- msg.vars.title = '[ deleted ]';
- body.vars.text = 'This post is no longer available.';
+ msg.find('.title').text('[ deleted ]');
+ body.find('.text').text('This post is no longer available.');
}, 5000);
setTimeout(function () {
@@ -1,2 +1,2 @@
div.date #{date}
-div.text !{$text}
+div.text !{text}
@@ -1,3 +1,3 @@
div.msg
- div.title !{$title}
- div.body !{$body}
+ div.title !{title}
+ div.body !{body}

0 comments on commit fb8dfd3

Please sign in to comment.