mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Switch Template to use builder. Wire outlets in Template.
This commit is contained in:
@@ -25,12 +25,7 @@ class Builder
|
||||
_.map(@document, (x) -> x.toHtml()).join('')
|
||||
|
||||
toFragment: ->
|
||||
fragment = $(@toHtml())
|
||||
fragment.find('[outlet]').each ->
|
||||
elt = $(this)
|
||||
outletName = elt.attr('outlet')
|
||||
fragment[outletName] = elt
|
||||
fragment
|
||||
$(@toHtml())
|
||||
|
||||
tag: (name, args...) ->
|
||||
options = @extractOptions(args)
|
||||
|
||||
Reference in New Issue
Block a user