Would it be wrong if the missing root element is automatically added:
So
becomes
I did a test with a small change in the compiler.coffee, and it works.
compile = (parseTree, {compiler, runtime, exports}={}) ->
if parseTree.length > 1
parseTree = [{tag: "div", children: parseTree}]
The only caveat here is that the HTML output might not be what the user expects.