Skip to content

Instantly share code, notes, and snippets.

@hgezim
Created April 1, 2012 05:48
Show Gist options
  • Save hgezim/2271780 to your computer and use it in GitHub Desktop.
Save hgezim/2271780 to your computer and use it in GitHub Desktop.
CS template
t = (s, d) ->
s = s.replace new RegExp("{{#{k}}}", 'g'), v for k, v of d
return s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment