     id = name.substr 1
     name = 'div'
 
+  if name is ''
+    name = 'div'
+
   beginTag = "<#{name}"
   beginTag += " id='#{id}'" if id
   beginTag += " class='#{classes.join ' '}'" if classes.length


  if type is '='
    (content) -> beginTag + content + closeTag
  else
    (contents) -> beginTag + (contents.join '') + closeTag


_templateCache = {}
Flow.HTML =

      if cached = _templateCache[template]
        cached
      else
        type = charAt template, 0
        if type is '=' or type is '+'
          _templateCache[template] = compile (template.substr 1), type
        else
          _templateCache[template] = compile template
  render: (name, html) ->
    el = document.createElement name
    if html
