Created
March 25, 2013 22:38
-
-
Save davidvanleeuwen/5241490 to your computer and use it in GitHub Desktop.
Stickit bindings
This file contains hidden or 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
bindings: | |
'h2': 'title' | |
'p': 'intro' | |
'a': | |
attributes: [ | |
name: 'href' | |
observe: 'slug' | |
onGet: (val) -> "/articles/#{val}" | |
, | |
name: 'class' | |
observe: 'active' | |
onGet: (val) -> 'active' if val | |
] | |
onRender: -> | |
@stickit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment