Blocks supporting standalone end tags was a matter of saying that this
could have been the beginning of the content.
Rewrote all partials to do in-bash string processing in order to add the
indent characters to all lines that have content.
Failing 28 out of 123 tests. At this point I have looked at all of the
tests and feel confident that they are because of features that are
intentionally not supported.
Pulled the block finding code into its own function to eliminate a
recursion problem.
Test failure count dropped because lambdas are supported and I just
needed to update the spec. Pull request mustache/spec#86 aims to add
bash support. Until then, the testing script will fall back to using
perl.
34 failing tests
* Trailing newline after a standalone tag can be "\r\n".
* Correctly returns the right number of characters to remove if the
standalone tag is at the end of the input (0 vs 1, didn't affect
behavior)
45 tests fail
This lets me run tests in a terminal. If I mess up and the terminal is
being read by `cat` or similar, this input is used instead and now my
tests will automatically fail properly.