Commit Graph

19 Commits

Author SHA1 Message Date
Joseph Dalrymple
53e3208ba0 Improved portability by using /usr/bin/env pragma 2023-04-04 02:00:31 -05:00
Tyler Akins
3828588512
Showing how to write output that includes braces 2019-08-22 15:59:05 -05:00
Tyler Akins
929ffc5b88
Merge pull request from andreax79/master
Pass arguments to function as environment variable MO_ALLOW_FUNCTION_ARGUMENTS
2019-08-08 07:47:44 -05:00
Andrea Bonomi
5b8cf24068 Pass arguments to function as environment variable MO_ALLOW_FUNCTION_ARGUMENTS 2019-08-08 11:43:50 +02:00
Tyler Akins
9f6d3bcdab
Adding an example
Shows how one can solve 
2019-07-19 20:22:27 -05:00
Tyler Akins
eac2685632
Adding an example for adding a comma
This closes .
2019-04-14 06:25:06 -05:00
Tyler Akins
ad98577c42
Changing how functions are called
Old way:

    functionName CONTENT argument1 argument2

New way:

    echo -n "$CONTENT" | functionName argument1 argument2

This follow the Unix style more closely.
2017-11-13 10:13:56 -06:00
Tyler Akins
0ca9970b58
Fixing multi-line partials 2017-04-21 09:37:16 -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
f9aea51163 mo can now source a script before parsing templates 2016-07-21 12:47:26 +01: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
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 .
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 .

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
6a6aadca50 Adding more demo files 2015-01-28 09:44:44 -06:00
Robin Kearney
0465586d7e Update important-file 2015-01-28 09:25:51 +00:00
Tyler Akins
6625042c4e Newlines now match up with what you'd expect 2015-01-23 18:07:30 +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