   isHtmlSelfClosing = t[0] == '<' && t[t.length-2] == '/'
   isSelfClosed =  isPlainString || isHtmlSelfClosing || (isMustachey && !isTokenTag)
   currentTag = t.match(/\w+/)[0]
-  debug = '' # "#{tf(prevTagIsOpening)}, #{tf(isClosing)}, #{prevTag}, #{currentTag}"
   unless !isElse && ((isSelfClosed && prevTagIsSelfClosed) || (prevTagIsClosed && !isClosing) || prevTagIsOpening && isClosing && (prevTag == currentTag))
     indent += (if isOpening then 1 else -1) 
   prevTag = currentTag

          arr
      else ''

tf = (bool) ->
  if bool then 'T' else 'F'

tagsArray = _(processStatements(result.statements)).flatten().join('').match(/<.+?>|{{.+?}}|[^<>{}]+/g);
_(tagsArray).reject((t,i,ctx) -> t == '{{else}}' && _(['{{/if}}', '{{/unless}}']).include(ctx[i+1]))
debugger

indent = -1
prevTag = ''

  prevTagIsClosed = isClosing
  prevTagIsElse = isElse
  prevTagIsSelfClosed = isSelfClosed
  if indent == 0 then '' else ("  " for n in [0..indent-1]).join('')) + t

fs.writeFileSync hbsFile, spaced.join("\n")


