├── .gitignore
├── LICENSE
├── README.md
├── index.js
├── lib
├── mu-cli.js
├── mu.js
└── mu
│ ├── errors.js
│ ├── parser.js
│ ├── renderer.js
│ └── stream.js
├── package.json
├── test.sh
└── test
├── bench.js
├── examples
├── boolean.html
├── boolean.js
├── boolean.txt
├── carriage_return.html
├── carriage_return.js
├── carriage_return.txt
├── comments.html
├── comments.js
├── comments.txt
├── complex.html
├── complex.js
├── complex.txt
├── date.html
├── date.js
├── date.txt
├── deep_partial.html
├── deep_partial.js
├── deep_partial.txt
├── delimiters.html
├── delimiters.js
├── delimiters.txt
├── dot_notation.html
├── dot_notation.js
├── dot_notation.txt
├── error_not_found.html
├── error_not_found.js
├── error_not_found.txt
├── escaped.html
├── escaped.js
├── escaped.txt
├── hash_instead_of_array.html
├── hash_instead_of_array.js
├── hash_instead_of_array.txt
├── inner_partial.html
├── inverted.html
├── inverted.js
├── inverted.txt
├── partial.html
├── partial.js
├── partial.txt
├── recursion_with_same_names.html
├── recursion_with_same_names.js
├── recursion_with_same_names.txt
├── reuse_of_enumerables.html
├── reuse_of_enumerables.js
├── reuse_of_enumerables.txt
├── simple.html
├── simple.js
├── simple.txt
├── tenthousand.html
├── tenthousand.js
├── tenthousand.txt
├── twice.html
├── twice.js
├── twice.txt
├── two_in_a_row.html
├── two_in_a_row.js
├── two_in_a_row.txt
├── unescaped.html
├── unescaped.js
└── unescaped.txt
└── run_examples_test.js
/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/.gitignore
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/LICENSE
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/README.md
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require(__dirname + '/lib/mu');
2 |
--------------------------------------------------------------------------------
/lib/mu-cli.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu-cli.js
--------------------------------------------------------------------------------
/lib/mu.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu.js
--------------------------------------------------------------------------------
/lib/mu/errors.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu/errors.js
--------------------------------------------------------------------------------
/lib/mu/parser.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu/parser.js
--------------------------------------------------------------------------------
/lib/mu/renderer.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu/renderer.js
--------------------------------------------------------------------------------
/lib/mu/stream.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/lib/mu/stream.js
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/package.json
--------------------------------------------------------------------------------
/test.sh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test.sh
--------------------------------------------------------------------------------
/test/bench.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/bench.js
--------------------------------------------------------------------------------
/test/examples/boolean.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/boolean.html
--------------------------------------------------------------------------------
/test/examples/boolean.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/boolean.js
--------------------------------------------------------------------------------
/test/examples/boolean.txt:
--------------------------------------------------------------------------------
1 | Jim
2 | 24
3 | admin
--------------------------------------------------------------------------------
/test/examples/carriage_return.html:
--------------------------------------------------------------------------------
1 |
2 | {{foo}}
3 |
4 |
--------------------------------------------------------------------------------
/test/examples/carriage_return.js:
--------------------------------------------------------------------------------
1 | {
2 | foo: "Hello World"
3 | }
4 |
--------------------------------------------------------------------------------
/test/examples/carriage_return.txt:
--------------------------------------------------------------------------------
1 |
2 | Hello World
3 |
4 |
--------------------------------------------------------------------------------
/test/examples/comments.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/comments.html
--------------------------------------------------------------------------------
/test/examples/comments.js:
--------------------------------------------------------------------------------
1 | {
2 | title: function() {
3 | return "A Comedy of Errors";
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/test/examples/comments.txt:
--------------------------------------------------------------------------------
1 |
A Comedy of Errors
2 |
--------------------------------------------------------------------------------
/test/examples/complex.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/complex.html
--------------------------------------------------------------------------------
/test/examples/complex.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/complex.js
--------------------------------------------------------------------------------
/test/examples/complex.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/complex.txt
--------------------------------------------------------------------------------
/test/examples/date.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/date.html
--------------------------------------------------------------------------------
/test/examples/date.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/date.js
--------------------------------------------------------------------------------
/test/examples/date.txt:
--------------------------------------------------------------------------------
1 | Date 2012
2 |
--------------------------------------------------------------------------------
/test/examples/deep_partial.html:
--------------------------------------------------------------------------------
1 | First: {{title}}
2 | {{>partial.html}}
--------------------------------------------------------------------------------
/test/examples/deep_partial.js:
--------------------------------------------------------------------------------
1 | {
2 | title: "Welcome"
3 | }
--------------------------------------------------------------------------------
/test/examples/deep_partial.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/deep_partial.txt
--------------------------------------------------------------------------------
/test/examples/delimiters.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/delimiters.html
--------------------------------------------------------------------------------
/test/examples/delimiters.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/delimiters.js
--------------------------------------------------------------------------------
/test/examples/delimiters.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/delimiters.txt
--------------------------------------------------------------------------------
/test/examples/dot_notation.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/dot_notation.html
--------------------------------------------------------------------------------
/test/examples/dot_notation.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/dot_notation.js
--------------------------------------------------------------------------------
/test/examples/dot_notation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/dot_notation.txt
--------------------------------------------------------------------------------
/test/examples/error_not_found.html:
--------------------------------------------------------------------------------
1 | {{foo}}
--------------------------------------------------------------------------------
/test/examples/error_not_found.js:
--------------------------------------------------------------------------------
1 | {bar: 2}
--------------------------------------------------------------------------------
/test/examples/error_not_found.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/examples/escaped.html:
--------------------------------------------------------------------------------
1 | {{title}}
--------------------------------------------------------------------------------
/test/examples/escaped.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/escaped.js
--------------------------------------------------------------------------------
/test/examples/escaped.txt:
--------------------------------------------------------------------------------
1 | Bear > Shark
--------------------------------------------------------------------------------
/test/examples/hash_instead_of_array.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/hash_instead_of_array.html
--------------------------------------------------------------------------------
/test/examples/hash_instead_of_array.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/hash_instead_of_array.js
--------------------------------------------------------------------------------
/test/examples/hash_instead_of_array.txt:
--------------------------------------------------------------------------------
1 |
2 | Name: Chris
3 |
--------------------------------------------------------------------------------
/test/examples/inner_partial.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/inner_partial.html
--------------------------------------------------------------------------------
/test/examples/inverted.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/inverted.html
--------------------------------------------------------------------------------
/test/examples/inverted.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/inverted.js
--------------------------------------------------------------------------------
/test/examples/inverted.txt:
--------------------------------------------------------------------------------
1 |
2 | Not Admin.
3 | Hi Jim!
4 |
--------------------------------------------------------------------------------
/test/examples/partial.html:
--------------------------------------------------------------------------------
1 | {{title}}
2 | {{>inner_partial.html}}
--------------------------------------------------------------------------------
/test/examples/partial.js:
--------------------------------------------------------------------------------
1 | {
2 | title: "Welcome"
3 | }
--------------------------------------------------------------------------------
/test/examples/partial.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/partial.txt
--------------------------------------------------------------------------------
/test/examples/recursion_with_same_names.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/recursion_with_same_names.html
--------------------------------------------------------------------------------
/test/examples/recursion_with_same_names.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/recursion_with_same_names.js
--------------------------------------------------------------------------------
/test/examples/recursion_with_same_names.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/recursion_with_same_names.txt
--------------------------------------------------------------------------------
/test/examples/reuse_of_enumerables.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/reuse_of_enumerables.html
--------------------------------------------------------------------------------
/test/examples/reuse_of_enumerables.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/reuse_of_enumerables.js
--------------------------------------------------------------------------------
/test/examples/reuse_of_enumerables.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/reuse_of_enumerables.txt
--------------------------------------------------------------------------------
/test/examples/simple.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/simple.html
--------------------------------------------------------------------------------
/test/examples/simple.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/simple.js
--------------------------------------------------------------------------------
/test/examples/simple.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/simple.txt
--------------------------------------------------------------------------------
/test/examples/tenthousand.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/tenthousand.html
--------------------------------------------------------------------------------
/test/examples/tenthousand.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/tenthousand.js
--------------------------------------------------------------------------------
/test/examples/tenthousand.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/tenthousand.txt
--------------------------------------------------------------------------------
/test/examples/twice.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/twice.html
--------------------------------------------------------------------------------
/test/examples/twice.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/twice.js
--------------------------------------------------------------------------------
/test/examples/twice.txt:
--------------------------------------------------------------------------------
1 | tom
2 | tom
3 |
--------------------------------------------------------------------------------
/test/examples/two_in_a_row.html:
--------------------------------------------------------------------------------
1 | {{greeting}}, {{name}}!
--------------------------------------------------------------------------------
/test/examples/two_in_a_row.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/two_in_a_row.js
--------------------------------------------------------------------------------
/test/examples/two_in_a_row.txt:
--------------------------------------------------------------------------------
1 | Welcome, Joe!
--------------------------------------------------------------------------------
/test/examples/unescaped.html:
--------------------------------------------------------------------------------
1 | {{{title}}}
--------------------------------------------------------------------------------
/test/examples/unescaped.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/examples/unescaped.js
--------------------------------------------------------------------------------
/test/examples/unescaped.txt:
--------------------------------------------------------------------------------
1 | Bear > Shark
--------------------------------------------------------------------------------
/test/run_examples_test.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raycmorgan/Mu/HEAD/test/run_examples_test.js
--------------------------------------------------------------------------------