Lots of changes in this work. First of all, I rewrote the parser/compiler to encourage greater separation of responsibilities. The scanner, parser, compiler, and renderer are all completely separate now. This architecture has led to a speed increase across the board from the 0.5.0-dev version, up to 50% in some browsers. See the bechmark here.
Run unit tests using vows (requires node)
- Cleaner separation of responsibilities in the code between
scanning, parsing, compiling, and rendering functions.
- Much faster
Remove Ruby dependency
Update testing instructions
This test should not work
Remove extra slashes
@janl Was just wondering if you've had time to take a look at this work?
@mjijackson not at all, sorry :( I put it on the maybe list for tomorrow.
Declare stripSpace with var
Strict escaping of ampersands
Fix quote implementation for environments without JSON.stringify
Run tests using node on Travis
Hello @janl! Some coworkers and I were wondering earlier today if you've got any objection to me merging this work? We've been using it for the past few weeks now without any issues. Sorry, I hate to be a bother...
Go for it :)
Use var declaration for helper functions
Was the streaming documentation intentionally removed here?
Yes. There never really was any streaming going on, just a callback that was executed synchronously as new pieces were rendered.