Created
July 9, 2014 15:44
-
-
Save ngauthier/fef1b94c334f66a4c21e to your computer and use it in GitHub Desktop.
have some tea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tea $("#person"), | |
name: "Nick", | |
bio: "Coderguy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tea = ($el, data) -> | |
for key, value of data | |
$el.find("[t='#{key}']").html(value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#person | |
h1[t='name'] | |
p[t='bio'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment