Tyler Akins
9b76cadefb
Logically simpler, functionally equivalent.
2016-10-25 05:59:52 -05:00
Tyler Akins
57663d7d34
Updating to match newer version of shellcheck
2016-10-25 05:56:40 -05:00
Tyler Akins
8238e144fd
Adding notes regarding ShellCheck
2016-08-03 10:24:56 -05:00
Tyler Akins
593c83b2ce
Adding test and fixes from shellcheck
2016-08-03 10:24:46 -05:00
Tyler Akins
c6bbf89f84
Fixing things reported by shellcheck
2016-08-03 10:19:43 -05:00
Tyler Akins
0cc1cef6e9
Updates to match recent code changes
2016-08-03 10:19:07 -05:00
Tyler Akins
1c03949107
Enabling a "false is empty" style check.
...
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.
2016-07-27 09:56:33 -05:00
Tyler Akins
ea76dc468b
Handling double-hyphens
2016-07-21 09:47:37 -05:00
Tyler Akins
b69406835f
Split test into three
2016-07-21 09:34:36 -05:00
Tyler Akins
2888626334
Bash 3 syntax and slight adjustments mostly for code style
2016-07-21 09:34:02 -05:00
Tyler Akins
ade7c1e77b
Merge pull request #9 from Alexandre-Silva/master
...
mo can now source a script before parsing templates
2016-07-21 09:25:05 -05:00
Alexandre-Silva
45475ec77e
Add test for --source flag and pull request suggestions
...
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.
2016-07-21 15:16:46 +01:00
Alexandre-Silva
4f7fd392b0
Merge remote-tracking branch 'tai/master'
2016-07-21 14:38:51 +01:00
Tyler Akins
600f5c5725
Adding mechanism to test command-line variables
2016-07-21 07:06:39 -05:00
Alexandre-Silva
f9aea51163
mo can now source a script before parsing templates
2016-07-21 12:47:26 +01:00
Tyler Akins
a1e22f1814
Removing an unnecessary redirection
2015-12-21 09:03:10 -06:00
Tyler Akins
4e0c6894b4
Fixing a quoting issue
2015-12-21 09:02:42 -06:00
Tyler Akins
67e22388da
Removing the submodule
2015-12-21 09:02:33 -06:00
Tyler Akins
d3c8fb0671
Updated tomdoc.sh to treat all functions as code
2015-10-07 15:58:45 -05:00
Tyler Akins
d8141aabaa
'*' may flag Markdown as italics
2015-10-07 15:23:50 -05:00
Tyler Akins
ddf6d79a14
Renaming variables
...
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.
2015-10-02 10:47:53 -05:00
Tyler Akins
14b156d3c0
Updating the submodule
2015-10-02 10:06:19 -05:00
Tyler Akins
54d836364c
Automatically generated documentation
2015-10-02 10:04:39 -05:00
Tyler Akins
b5faf67737
Reformat comments into TomDoc format
2015-10-02 10:04:30 -05:00
Tyler Akins
3354bd7089
Using env to find bash
2015-10-02 09:46:41 -05:00
Tyler Akins
851e619fbd
Renaming all functions
...
This makes function names POSIX compliant. Not a big deal with bash,
but very important if you want to use tools like ctags or tomdoc.sh.
2015-10-02 09:46:24 -05:00
Tyler Akins
b16d73b5a7
Updates for how to source "mo" and then use it
...
When you source mo, it adds the "mo" function to the environment.
2015-08-27 09:44:04 -05:00
Tyler Akins
e623b16bb8
Allowing access to globals while in a loop
...
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
2015-08-27 09:43:10 -05:00
Tyler Akins
70cc736b4a
Must have IFS set properly
...
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.
2015-08-21 11:56:52 -05:00
Tyler Akins
e1b6815b8c
Clarifying documentation
...
This helps to close issue #5
2015-05-06 10:13:39 -05:00
Tyler Akins
140d4ec350
Adding example to illustrate how to get properties
...
This is supporting information to demonstrate one way to address the
user's issues - see issue #5 .
2015-05-05 11:06:04 -05:00
Tyler Akins
5810520546
Using the "mo" from this repository
2015-05-05 11:04:41 -05:00
Tyler Akins
5dfb1cd96a
Better associative array handling
...
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.
2015-05-05 10:46:06 -05:00
Tyler Akins
3516cdd631
Removing Bourne shell-ism (bash doesn't have this issue)
2015-02-13 11:38:03 +00:00
Tyler Akins
6a6aadca50
Adding more demo files
2015-01-28 09:44:44 -06:00
Tyler Akins
bc838de550
Merge pull request #4 from rk295/patch-2
...
Exporting these two variables makes them available to Mo (on bash 4.1.2 at least)
2015-01-28 07:36:02 -06:00
Robin Kearney
0465586d7e
Update important-file
2015-01-28 09:25:51 +00:00
Tyler Akins
dac224cc7a
Removing negative indices
...
This closes issue #2
2015-01-27 10:41:16 -06:00
Tyler Akins
33e31cfd89
Adding note about diagnostic tool
2015-01-27 10:14:38 -06:00
Tyler Akins
c514fe8c07
Diagnostic tool writes a couple temp files
2015-01-27 10:10:59 -06:00
Tyler Akins
a599be7438
Adding diagnostic script to aid in backporting
2015-01-27 10:10:26 -06:00
Tyler Akins
0bd1832eb1
Removing another unneeded parameter
2015-01-27 09:49:11 -06:00
Tyler Akins
bc5c313828
Minor bugfixes found while writing more tests
2015-01-27 09:46:40 -06:00
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
051750a048
Merge pull request #1 from rk295/patch-1
...
Typo!
2015-01-27 06:01:06 -06:00
Robin Kearney
a0a58589f7
Typo!
2015-01-27 09:15:41 +00: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
414808f7f2
Commenting on HTML escaping
2015-01-26 15:24:34 -06:00