satyr/ckup — pull request #3 by jdknezek (2012-04-04 18:53:08+00:00)
Title: added @coco

I added a `coco` function, modeled after CoffeeKup's `coffeescript` method, which serializes a function and its arguments:

$ coco -es
console.log (require \ckup .render ->
scope =
a: 4
b: 2

@script type: \text/javascript, @coco scope, ({a, b}: scope) ->
c = ^scope
console.log a, b, c
)

I've found this very useful for bootstrapping data into a ckup view. The commit could be smaller (and safer) if `coco` were modified to export its `UTILITIES` somehow.