Commit Graph

164 Commits

Author SHA1 Message Date
Tyler Akins
dc33657284 Removing unneeded parameter 2015-01-26 13:05:28 -06:00
Tyler Akins
5aa22680f5 Adding better block detection
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
2015-01-26 12:51:28 -06:00
Tyler Akins
734529d6ed Adding support for partials and lambdas 2015-01-26 12:50:11 -06:00
Tyler Akins
1e26c691b9 Fixing newlines, removing unnecessary quotes
* 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
2015-01-26 14:50:07 +00:00
Tyler Akins
8ee909f8de Adding some support for standalone tags
Failing test count is down about 5.  Currently at 57 / 122 failures
2015-01-26 03:31:21 +00:00
Tyler Akins
d50e034ac4 Clarifying what spec files should be processed 2015-01-23 21:17:52 +00:00
Tyler Akins
464733444a Adding support for &
This fixes 6 official tests
2015-01-23 20:26:56 +00:00
Tyler Akins
e75302f327 Adding code to test against official tests
They don't all really fit in the bash environment, but I'd rather be
able to see what works and what does not.
2015-01-23 20:26:21 +00:00
Tyler Akins
c6e0c6062d Remembered another feature that is not implemented
I should make sure to call these things out instead of trying to hide
them.
2015-01-23 18:19:44 +00:00
Tyler Akins
6625042c4e Newlines now match up with what you'd expect 2015-01-23 18:07:30 +00:00
Tyler Akins
b097733ffd Move file loading to a separate function 2015-01-23 18:06:24 +00:00
Tyler Akins
7a271b58f6 In case of error, pipe something in
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.
2015-01-23 18:05:27 +00:00
Tyler Akins
c90d0af323 Forcing script execution to be in a particular directory 2015-01-23 17:47:31 +00:00
Tyler Akins
1151ec0a9e Initial commit 2015-01-23 17:43:08 +00:00