mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add Template.toHtml
This commit is contained in:
@@ -17,6 +17,9 @@ class Template
|
||||
@build: (attributes) ->
|
||||
(new this).build(attributes)
|
||||
|
||||
@toHtml: (attributes) ->
|
||||
(new this).toHtml(attributes)
|
||||
|
||||
build: (attributes) ->
|
||||
@builder = new Builder
|
||||
@content(attributes)
|
||||
@@ -28,6 +31,11 @@ class Template
|
||||
view.initialize?(attributes)
|
||||
view
|
||||
|
||||
toHtml: (attributes) ->
|
||||
@builder = new Builder
|
||||
@content(attributes)
|
||||
@builder.toHtml()
|
||||
|
||||
wireOutlets: (view) ->
|
||||
view.find('[outlet]').each ->
|
||||
elt = $(this)
|
||||
|
||||
Reference in New Issue
Block a user