tildeio/htmlbars — pull request #20 by mmun (2014-04-23 03:16:01+00:00)
Title: Implement stripping

Whitespace is removed from the AST at parse time. Any unnecessary text nodes are removed. This works nicely with single element programs, so instead of writing

```handlebars
{{#each}}
foo
{{/each}}
```

you can write

```handlebars
{{#each~}}

foo

{{~/each}}
```

and still generate an optimized fragment

```javascript
function build(dom) {
var el0 = dom.createElement('li');
dom.appendText(el0, 'foo');
return el0;
}
```