Half-baked template experiment

This commit is contained in:
Corey Johnson & Nathan Sobo
2011-12-12 16:24:55 -08:00
parent 0dd6df1ab6
commit 607149a07d
5 changed files with 410 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
$ = require 'jquery'
coffeekup = require 'coffeekup'
module.exports =
class Template
@buildView: (attributes) ->
(new this).buildView(attributes)
buildView: (attributes) ->
$(coffeekup.render(@content, attributes))