Skip to content

Instantly share code, notes, and snippets.

@jasonkuhrt
Created March 13, 2011 00:01
Show Gist options
  • Save jasonkuhrt/867719 to your computer and use it in GitHub Desktop.
Save jasonkuhrt/867719 to your computer and use it in GitHub Desktop.
Getters and Settings in CS, throwing error?
obj =
index: section.index
name: section.name
slug: ''
get slug()->
this.name.replace /\s/g, '-'
pug: ''
get pug()->
this.name.replace /\s/g, '_'
path: ''
get path()->
"sections/#{this.pug}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment