This is based off of pull request #10 from @athieriot.
Thanks for the idea! I've implemented it as a flag and an environment
variable that can be enabled. I've also added another test to handle
the environment variable.
Add a demo/sourcing.vars file to be used by the associated demo
script.
Modified mo argument parsing so that --help and --source=file do not need
to be the first arguments for mo. And can in fact appear after or in the
middle of filenames.
Ones that are all uppercase can conflict with system variables. Using
lower case or camelCase variables will ensure we will never conflict
with these predefined values.
This used to make a name like DATA.0.STR. Since bash doesn't like using
multi-dimensional arrays, we can shortcut things and just assume that
STR referes to the global variable here.
This closes issue #7
This lets the value returned from mustache-is-standalone get parsed
correctly. When this is a standalone template, the value returned looks
like "12 34" where each number is a position. Later, this is used in a
line that looks like `( $VALUE_RETURNED )`. When IFS does not contain a
space, this array is not built correctly.
Bug: Did not properly detect the length of an array in mustache-test
because I neglected to use `[@]` after the array name. This closes
issue #6.
Feature: Made {{ARRAY_NAME}} implode array values with commas.
Feature: Added an associative array demo script.
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.