Skip to content

Commit

Permalink
Updated client-side examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricemach committed Jul 11, 2011
1 parent 5c50b85 commit 67b6472
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 279 deletions.
4 changes: 2 additions & 2 deletions examples/browser/creme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
for guy in @stooges
li guy

$('body').append CoffeeKup.render(stringy, context: {stooges: stooges})
$('body').append CoffeeKup.render(codey, context: {stooges: stooges})
$('body').append CoffeeKup.render(stringy, stooges: stooges)
$('body').append CoffeeKup.render(codey, stooges: stooges)
</script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/decaf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<script>
$().ready(function(){
$('body').append(template({context: {stooges: ['moe', 'larry', 'curly']}}));
$('body').append(template({stooges: ['moe', 'larry', 'curly']}));
});
</script>
</head>
Expand Down
137 changes: 1 addition & 136 deletions examples/browser/decaf/template.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/browser/regular/index.coffee
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$().ready ->
$('body').append template(context: {stooges: ['moe', 'larry', 'curly']})
$('body').append template(stooges: ['moe', 'larry', 'curly'])
4 changes: 1 addition & 3 deletions examples/browser/regular/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
(function() {
$().ready(function() {
return $('body').append(template({
context: {
stooges: ['moe', 'larry', 'curly']
}
stooges: ['moe', 'larry', 'curly']
}));
});
}).call(this);
Loading

0 comments on commit 67b6472

Please sign in to comment.