mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Half-baked template experiment
This commit is contained in:
11
src/stdlib/template.coffee
Normal file
11
src/stdlib/template.coffee
Normal 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))
|
||||
|
||||
Reference in New Issue
Block a user