Skip to content

Instantly share code, notes, and snippets.

@davidvanleeuwen
Created March 25, 2013 22:38
Show Gist options
  • Save davidvanleeuwen/5241490 to your computer and use it in GitHub Desktop.
Save davidvanleeuwen/5241490 to your computer and use it in GitHub Desktop.
Stickit bindings
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