Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Created November 11, 2010 21:53
Show Gist options
  • Save rmetzler/673268 to your computer and use it in GitHub Desktop.
Save rmetzler/673268 to your computer and use it in GitHub Desktop.
this is coffee script template for a soca app
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