Commit Graph

12 Commits

Author SHA1 Message Date
Tyler Akins
9ad785ff32 Removed one global variable 2015-01-27 08:29:08 -06:00
Tyler Akins
d387141473 Adding header to file to point to repo 2015-01-27 06:05:06 -06:00
Tyler Akins
68c3141678 Alphabetiation of functions
Oh my goodness, it needed some sort of organiation in there.
2015-01-26 19:55:06 -06:00
Tyler Akins
b469554ac1 Avoid newline indentation with empty indent string 2015-01-26 18:23:28 -06:00
Tyler Akins
a9f65f65ed Rewrote partials, all blocks support standalone
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.
2015-01-26 15:09:27 -06:00
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
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
464733444a Adding support for &
This fixes 6 official tests
2015-01-23 20:26:56 +00:00
Tyler Akins
b097733ffd Move file loading to a separate function 2015-01-23 18:06:24 +00:00
Tyler Akins
1151ec0a9e Initial commit 2015-01-23 17:43:08 +00:00