tildeio/htmlbars — pull request #1 by blakeembrey (2013-07-25 10:53:44+00:00)
Title: EOF tokenizer was causing duplicate text contents

I just discovered this recently and was writing a small library built on top of it, but I have found a few issues. I plan to work through them, but this one was an immediate blocker. Basically whenever a block ends with a text node the node was being appended to both the block and the parents block. Adds a corresponding test case.

Unrelated question: What is the compatibility with Handlebars intending to be like? I have found that there are no `{{else}}` blocks, no passing in custom data for the `@` variable references, no passing custom helpers to each template, `options.fn` is now called `options.render`, etc. I would love to contribute to this if these are issues that should be solved.