add '{' operator support into DOM.parseTemplate
simplify HtmlBuilder helper in DOM.parseTemplate