Skip to content
Browse files

Update 2012/2012-01-13-implementing-semantic-anti-templating-with-jqu…

…ery.md
  • Loading branch information...
1 parent 31280fa commit 8c2fb7c9f291430ce7aa1e601561ef5b44500797 @pyykkis pyykkis committed Jan 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 2012/2012-01-13-implementing-semantic-anti-templating-with-jquery.md
View
5 2012/2012-01-13-implementing-semantic-anti-templating-with-jquery.md
@@ -37,6 +37,7 @@ I started with a modest goal: Given I have a static web page
```html
<div class="container">
<div class="hello"></div>
+ <div class="goodbye"></div>
</div>
```
@@ -45,6 +46,7 @@ and a simple JavaScript object
```javascript
data = {
hello: "Hi There!"
+ goodbye: "See ya!"
};
```
@@ -55,6 +57,7 @@ following in the browser
```html
<div class="container">
<div class="hello">Hi There!</div>
+ <div class="goodbye">See ya!</div>
</div>
```
@@ -78,7 +81,7 @@ jQuery.fn.render = (data) ->
node.append children
```
-## There are too many loops out there
+## Getting rid of loops
The next logical step was support for collections. I wanted to keep the interface exactly the same, without explicit
loops or partials. Given an object like

0 comments on commit 8c2fb7c

Please sign in to comment.
Something went wrong with that request. Please try again.