Created
November 11, 2010 21:53
-
-
Save rmetzler/673268 to your computer and use it in GitHub Desktop.
this is coffee script template for a soca app
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
soca = ($) -> | |
app = $.sammy '#container', () -> | |
this.use 'Couch', 'st' | |
this.get '#/', (ctx) -> | |
# do something with ctx | |
$ () -> | |
app.run('#/') | |
soca jQuery | |
# this is coffee script for this javascript code | |
# | |
# | |
# (function($) { | |
# | |
# var app = $.sammy('#container', function() { | |
# this.use('Couch', 'st'); | |
# | |
# this.get('#/', function(ctx){ | |
# | |
# }); | |
# | |
# }); | |
# | |
# $(function() { | |
# app.run('#/'); | |
# }); | |
# | |
# })(jQuery); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment