    th thead time title tr u ul video area base br col command embed hr img input
    keygen link meta param source track wbrk'.split /\s+/
 
-voidElements =
+SelfClosingTags =
   'area base br col command embed hr img input keygen link meta param
    source track wbr'.split /\s+/
 
-events =
+Events =
   'blur change click dblclick error focus input keydown
    keypress keyup load mousedown mousemove mouseout mouseover
    mouseup resize scroll select submit unload'.split /\s+/

class View extends jQuery
  @builderStack: null

  elements.forEach (tagName) ->
    View[tagName] = (args...) -> @currentBuilder.tag(tagName, args...)

  @subview: (name, view) ->

else
  $ = jQuery = window.jQuery

Tags =
  'a abbr address article aside audio b bdi bdo blockquote body button
   canvas caption cite code colgroup datalist dd del details dfn div dl dt em
   fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup
