diff --git a/node_modules/mustache/.jshintrc b/node_modules/mustache/.jshintrc deleted file mode 100644 index 28dff71..0000000 --- a/node_modules/mustache/.jshintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "eqnull": true, - "evil": true -} - diff --git a/node_modules/mustache/.npmignore b/node_modules/mustache/.npmignore deleted file mode 100644 index 9000776..0000000 --- a/node_modules/mustache/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -.DS_Store -.rvmrc -node_modules -runner.js -jquery.mustache.js -qooxdoo.mustache.js -dojox -yui3 -requirejs.mustache.js - diff --git a/node_modules/mustache/.travis.yml b/node_modules/mustache/.travis.yml deleted file mode 100644 index 3d839b0..0000000 --- a/node_modules/mustache/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.6 - diff --git a/node_modules/mustache/CHANGES b/node_modules/mustache/CHANGES deleted file mode 100644 index b5b04f4..0000000 --- a/node_modules/mustache/CHANGES +++ /dev/null @@ -1,34 +0,0 @@ -= 0.7.2 / 27 Dec 2012 - - * Fixed a rendering bug (#274) when using nested higher-order sections. - * Converted tests to use mocha instead of vows. - -= 0.7.1 / 6 Dec 2012 - - * Handle empty templates gracefully. Fixes #265, #267, and #270. - * Cache partials by template, not by name. Fixes #257. - * Added Mustache.compileTokens to compile the output of Mustache.parse. Fixes - #258. - -= 0.7.0 / 10 Sep 2012 - - * Rename Renderer => Writer. - * Allow partials to be loaded dynamically using a callback (thanks - @TiddoLangerak for the suggestion). - * Fixed a bug with higher-order sections that prevented them from being - passed the raw text of the section from the original template. - * More concise token format. Tokens also include start/end indices in the - original template. - * High-level API is consistent with the Writer API. - * Allow partials to be passed to the pre-compiled function (thanks - @fallenice). - * Don't use eval (thanks @cweider). - -= 0.6.0 / 31 Aug 2012 - - * Use JavaScript's definition of falsy when determining whether to render an - inverted section or not. Issue #186. - * Use Mustache.escape to escape values inside {{}}. This function may be - reassigned to alter the default escaping behavior. Issue #244. - * Fixed a bug that clashed with QUnit (thanks @kannix). - * Added volo support (thanks @guybedford). diff --git a/node_modules/mustache/LICENSE b/node_modules/mustache/LICENSE deleted file mode 100644 index 6626848..0000000 --- a/node_modules/mustache/LICENSE +++ /dev/null @@ -1,10 +0,0 @@ -The MIT License - -Copyright (c) 2009 Chris Wanstrath (Ruby) -Copyright (c) 2010 Jan Lehnardt (JavaScript) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/mustache/README.md b/node_modules/mustache/README.md deleted file mode 100644 index d4b6ad0..0000000 --- a/node_modules/mustache/README.md +++ /dev/null @@ -1,400 +0,0 @@ -# mustache.js - Logic-less {{mustache}} templates with JavaScript - -> What could be more logical awesome than no logic at all? - -[mustache.js](http://github.com/janl/mustache.js) is an implementation of the [mustache](http://mustache.github.com/) template system in JavaScript. - -[Mustache](http://mustache.github.com/) is a logic-less template syntax. It can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object. - -We call it "logic-less" because there are no if statements, else clauses, or for loops. Instead there are only tags. Some tags are replaced with a value, some nothing, and others a series of values. - -For a language-agnostic overview of mustache's template syntax, see the `mustache(5)` [manpage](http://mustache.github.com/mustache.5.html). - -## Where to use mustache.js? - -You can use mustache.js to render mustache templates anywhere you can use JavaScript. This includes web browsers, server-side environments such as [node](http://nodejs.org/), and [CouchDB](http://couchdb.apache.org/) views. - -mustache.js ships with support for both the [CommonJS](http://www.commonjs.org/) module API and the [Asynchronous Module Definition](https://github.com/amdjs/amdjs-api/wiki/AMD) API, or AMD. - -## Who uses mustache.js? - -An updated list of mustache.js users is kept [on the Github wiki](http://wiki.github.com/janl/mustache.js/beard-competition). Add yourself or your company if you use mustache.js! - -## Usage - -Below is quick example how to use mustache.js: - - var view = { - title: "Joe", - calc: function () { - return 2 + 4; - } - }; - - var output = Mustache.render("{{title}} spends {{calc}}", view); - -In this example, the `Mustache.render` function takes two parameters: 1) the [mustache](http://mustache.github.com/) template and 2) a `view` object that contains the data and code needed to render the template. - -## Templates - -A [mustache](http://mustache.github.com/) template is a string that contains any number of mustache tags. Tags are indicated by the double mustaches that surround them. `{{person}}` is a tag, as is `{{#person}}`. In both examples we refer to `person` as the tag's key. - -There are several types of tags available in mustache.js. - -### Variables - -The most basic tag type is a simple variable. A `{{name}}` tag renders the value of the `name` key in the current context. If there is no such key, nothing is rendered. - -All variables are HTML-escaped by default. If you want to render unescaped HTML, use the triple mustache: `{{{name}}}`. You can also use `&` to unescape a variable. - -View: - - { - "name": "Chris", - "company": "GitHub" - } - -Template: - - * {{name}} - * {{age}} - * {{company}} - * {{{company}}} - * {{&company}} - -Output: - - * Chris - * - * <b>GitHub</b> - * GitHub - * GitHub - -JavaScript's dot notation may be used to access keys that are properties of objects in a view. - -View: - - { - "name": { - "first": "Michael", - "last": "Jackson" - }, - "age": "RIP" - } - -Template: - - * {{name.first}} {{name.last}} - * {{age}} - -Output: - - * Michael Jackson - * RIP - -### Sections - -Sections render blocks of text one or more times, depending on the value of the key in the current context. - -A section begins with a pound and ends with a slash. That is, `{{#person}}` begins a `person` section, while `{{/person}}` ends it. The text between the two tags is referred to as that section's "block". - -The behavior of the section is determined by the value of the key. - -#### False Values or Empty Lists - -If the `person` key does not exist, or exists and has a value of `null`, `undefined`, or `false`, or is an empty list, the block will not be rendered. - -View: - - { - "person": false - } - -Template: - - Shown. - {{#person}} - Never shown! - {{/person}} - -Output: - - Shown. - -#### Non-Empty Lists - -If the `person` key exists and is not `null`, `undefined`, or `false`, and is not an empty list the block will be rendered one or more times. - -When the value is a list, the block is rendered once for each item in the list. The context of the block is set to the current item in the list for each iteration. In this way we can loop over collections. - -View: - - { - "stooges": [ - { "name": "Moe" }, - { "name": "Larry" }, - { "name": "Curly" } - ] - } - -Template: - - {{#stooges}} - {{name}} - {{/stooges}} - -Output: - - Moe - Larry - Curly - -When looping over an array of strings, a `.` can be used to refer to the current item in the list. - -View: - - { - "musketeers": ["Athos", "Aramis", "Porthos", "D'Artagnan"] - } - -Template: - - {{#musketeers}} - * {{.}} - {{/musketeers}} - -Output: - - * Athos - * Aramis - * Porthos - * D'Artagnan - -If the value of a section variable is a function, it will be called in the context of the current item in the list on each iteration. - -View: - - { - "beatles": [ - { "firstName": "John", "lastName": "Lennon" }, - { "firstName": "Paul", "lastName": "McCartney" }, - { "firstName": "George", "lastName": "Harrison" }, - { "firstName": "Ringo", "lastName": "Starr" } - ], - "name": function () { - return this.firstName + " " + this.lastName; - } - } - -Template: - - {{#beatles}} - * {{name}} - {{/beatles}} - -Output: - - * John Lennon - * Paul McCartney - * George Harrison - * Ringo Starr - -#### Functions - -If the value of a section key is a function, it is called with the section's literal block of text, un-rendered, as its first argument. The second argument is a special rendering function that uses the current view as its view argument. It is called in the context of the current view object. - -View: - - { - "name": "Tater", - "bold": function () { - return function (text, render) { - return "" + render(text) + ""; - } - } - } - -Template: - - {{#bold}}Hi {{name}}.{{/bold}} - -Output: - - Hi Tater. - -### Inverted Sections - -An inverted section opens with `{{^section}}` instead of `{{#section}}`. The block of an inverted section is rendered only if the value of that section's tag is `null`, `undefined`, `false`, or an empty list. - -View: - - { - "repos": [] - } - -Template: - - {{#repos}}{{name}}{{/repos}} - {{^repos}}No repos :({{/repos}} - -Output: - - No repos :( - -### Comments - -Comments begin with a bang and are ignored. The following template: - -

Today{{! ignore me }}.

- -Will render as follows: - -

Today.

- -Comments may contain newlines. - -### Partials - -Partials begin with a greater than sign, like {{> box}}. - -Partials are rendered at runtime (as opposed to compile time), so recursive partials are possible. Just avoid infinite loops. - -They also inherit the calling context. Whereas in ERB you may have this: - - <%= partial :next_more, :start => start, :size => size %> - -Mustache requires only this: - - {{> next_more}} - -Why? Because the `next_more.mustache` file will inherit the `size` and `start` variables from the calling context. In this way you may want to think of partials as includes, or template expansion, even though it's not literally true. - -For example, this template and partial: - - base.mustache: -

Names

- {{#names}} - {{> user}} - {{/names}} - - user.mustache: - {{name}} - -Can be thought of as a single, expanded template: - -

Names

- {{#names}} - {{name}} - {{/names}} - -In mustache.js an object of partials may be passed as the third argument to `Mustache.render`. The object should be keyed by the name of the partial, and its value should be the partial text. - -### Set Delimiter - -Set Delimiter tags start with an equals sign and change the tag delimiters from `{{` and `}}` to custom strings. - -Consider the following contrived example: - - * {{ default_tags }} - {{=<% %>=}} - * <% erb_style_tags %> - <%={{ }}=%> - * {{ default_tags_again }} - -Here we have a list with three items. The first item uses the default tag style, the second uses ERB style as defined by the Set Delimiter tag, and the third returns to the default style after yet another Set Delimiter declaration. - -According to [ctemplates](http://google-ctemplate.googlecode.com/svn/trunk/doc/howto.html), this "is useful for languages like TeX, where double-braces may occur in the text and are awkward to use for markup." - -Custom delimiters may not contain whitespace or the equals sign. - -### Compiled Templates - -Mustache templates can be compiled into JavaScript functions using `Mustache.compile` for improved rendering performance. - -If you have template views that are rendered multiple times, compiling your template into a JavaScript function will minimise the amount of work required for each re-render. - -Pre-compiled templates can also be generated server-side, for delivery to the browser as ready to use JavaScript functions, further reducing the amount of client side processing required for initialising templates. - -**Mustache.compile** - -Use `Mustache.compile` to compile standard Mustache string templates into reusable Mustache template functions. - - var compiledTemplate = Mustache.compile(stringTemplate); - -The function returned from `Mustache.compile` can then be called directly, passing in the template data as an argument (with an object of partials as an optional second parameter), to generate the final output. - - var templateOutput = compiledTemplate(templateData); - -**Mustache.compilePartial** - -Template partials can also be compiled using the `Mustache.compilePartial` function. The first parameter of this function, is the name of the partial as it appears within parent templates. - - Mustache.compilePartial('partial-name', stringTemplate); - -Compiled partials are then available to both `Mustache.render` and `Mustache.compile`. - -## Plugins for JavaScript Libraries - -mustache.js may be built specifically for several different client libraries, including the following: - - - [jQuery](http://jquery.com/) - - [MooTools](http://mootools.net/) - - [Dojo](http://www.dojotoolkit.org/) - - [YUI](http://developer.yahoo.com/yui/) - - [qooxdoo](http://qooxdoo.org/) - -These may be built using [Rake](http://rake.rubyforge.org/) and one of the following commands: - - $ rake jquery - $ rake mootools - $ rake dojo - $ rake yui - $ rake qooxdoo - -## Testing - -The mustache.js test suite uses the [vows](http://vowsjs.org/) testing framework. In order to run the tests you'll need to install [node](http://nodejs.org/). Once that's done you can install vows using [npm](http://npmjs.org/). - - $ npm install -g vows - -Then run the tests. - - $ vows --spec - -The test suite consists of both unit and integration tests. If a template isn't rendering correctly for you, you can make a test for it by doing the following: - - 1. Create a template file named `mytest.mustache` in the `test/_files` - directory. Replace `mytest` with the name of your test. - 2. Create a corresponding view file named `mytest.js` in the same directory. - This file should contain a JavaScript object literal enclosed in - parentheses. See any of the other view files for an example. - 3. Create a file with the expected output in `mytest.txt` in the same - directory. - -Then, you can run the test with: - - $ TEST=mytest vows test/render_test.js - -## Thanks - -mustache.js wouldn't kick ass if it weren't for these fine souls: - - * Chris Wanstrath / defunkt - * Alexander Lang / langalex - * Sebastian Cohnen / tisba - * J Chris Anderson / jchris - * Tom Robinson / tlrobinson - * Aaron Quint / quirkey - * Douglas Crockford - * Nikita Vasilyev / NV - * Elise Wood / glytch - * Damien Mathieu / dmathieu - * Jakub Kuźma / qoobaa - * Will Leinweber / will - * dpree - * Jason Smith / jhs - * Aaron Gibralter / agibralter - * Ross Boucher / boucher - * Matt Sanford / mzsanford - * Ben Cherry / bcherry - * Michael Jackson / mjijackson diff --git a/node_modules/mustache/Rakefile b/node_modules/mustache/Rakefile deleted file mode 100644 index bc32175..0000000 --- a/node_modules/mustache/Rakefile +++ /dev/null @@ -1,68 +0,0 @@ -require 'rake' -require 'rake/clean' - -task :default => :test - -ROOT = File.expand_path('..', __FILE__) -MUSTACHE_JS = File.read(File.join(ROOT, 'mustache.js')) - -def mustache_version - match = MUSTACHE_JS.match(/exports\.version = "([^"]+)";/) - match[1] -end - -def minified_file - ENV['FILE'] || 'mustache.min.js' -end - -desc "Run all tests, requires vows (see http://vowsjs.org)" -task :test do - sh "vows --spec" -end - -desc "Minify to #{minified_file}, requires UglifyJS (see http://marijnhaverbeke.nl/uglifyjs)" -task :minify do - sh "uglifyjs mustache.js > #{minified_file}" -end - -desc "Run JSHint, requires jshint (see http://www.jshint.com)" -task :lint do - sh "jshint mustache.js" -end - -# Creates a task that uses the various template wrappers to make a wrapped -# output file. There is some extra complexity because Dojo and YUI use -# different final locations. -def templated_build(name, opts={}) - short = name.downcase - source = File.join("wrappers", short) - dependencies = ["mustache.js"] + Dir.glob("#{source}/*.tpl.*") - target_js = opts[:location] ? "mustache.js" : "#{short}.mustache.js" - - CLEAN.include(opts[:location] ? opts[:location] : target_js) - - desc "Package for #{name}" - task short.to_sym => dependencies do - puts "Packaging for #{name}" - - mkdir_p opts[:location] if opts[:location] - - files = [ - "#{source}/mustache.js.pre", - 'mustache.js', - "#{source}/mustache.js.post" - ] - - open("#{opts[:location] || '.'}/#{target_js}", 'w') do |f| - files.each {|file| f << File.read(file) } - end - - puts "Done, see #{opts[:location] || '.'}/#{target_js}" - end -end - -templated_build "jQuery" -templated_build "MooTools" -templated_build "Dojo", :location => "dojox/string" -templated_build "YUI3", :location => "yui3/mustache" -templated_build "qooxdoo" diff --git a/node_modules/mustache/mustache.js b/node_modules/mustache/mustache.js deleted file mode 100644 index 932052b..0000000 --- a/node_modules/mustache/mustache.js +++ /dev/null @@ -1,610 +0,0 @@ -/*! - * mustache.js - Logic-less {{mustache}} templates with JavaScript - * http://github.com/janl/mustache.js - */ - -/*global define: false*/ - -(function (root, factory) { - if (typeof exports === "object" && exports) { - module.exports = factory; // CommonJS - } else if (typeof define === "function" && define.amd) { - define(factory); // AMD - } else { - root.Mustache = factory; // diff --git a/node_modules/mustache/test/_files/backslashes.txt b/node_modules/mustache/test/_files/backslashes.txt deleted file mode 100644 index 038dd37..0000000 --- a/node_modules/mustache/test/_files/backslashes.txt +++ /dev/null @@ -1,7 +0,0 @@ -* \abc -* \abc -* \abc - diff --git a/node_modules/mustache/test/_files/bug_11_eating_whitespace.js b/node_modules/mustache/test/_files/bug_11_eating_whitespace.js deleted file mode 100644 index e41ccd1..0000000 --- a/node_modules/mustache/test/_files/bug_11_eating_whitespace.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - tag: "yo" -}) diff --git a/node_modules/mustache/test/_files/bug_11_eating_whitespace.mustache b/node_modules/mustache/test/_files/bug_11_eating_whitespace.mustache deleted file mode 100644 index 8d5cd92..0000000 --- a/node_modules/mustache/test/_files/bug_11_eating_whitespace.mustache +++ /dev/null @@ -1 +0,0 @@ -{{tag}} foo diff --git a/node_modules/mustache/test/_files/bug_11_eating_whitespace.txt b/node_modules/mustache/test/_files/bug_11_eating_whitespace.txt deleted file mode 100644 index f5bbc85..0000000 --- a/node_modules/mustache/test/_files/bug_11_eating_whitespace.txt +++ /dev/null @@ -1 +0,0 @@ -yo foo diff --git a/node_modules/mustache/test/_files/changing_delimiters.js b/node_modules/mustache/test/_files/changing_delimiters.js deleted file mode 100644 index b808f4c..0000000 --- a/node_modules/mustache/test/_files/changing_delimiters.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - "foo": "foooooooooooooo", - "bar": "bar!" -}) diff --git a/node_modules/mustache/test/_files/changing_delimiters.mustache b/node_modules/mustache/test/_files/changing_delimiters.mustache deleted file mode 100644 index 0cd044c..0000000 --- a/node_modules/mustache/test/_files/changing_delimiters.mustache +++ /dev/null @@ -1 +0,0 @@ -{{=<% %>=}}<% foo %> {{foo}} <%{bar}%> {{{bar}}} diff --git a/node_modules/mustache/test/_files/changing_delimiters.txt b/node_modules/mustache/test/_files/changing_delimiters.txt deleted file mode 100644 index 1b1510d..0000000 --- a/node_modules/mustache/test/_files/changing_delimiters.txt +++ /dev/null @@ -1 +0,0 @@ -foooooooooooooo {{foo}} bar! {{{bar}}} diff --git a/node_modules/mustache/test/_files/check_falsy.js b/node_modules/mustache/test/_files/check_falsy.js deleted file mode 100644 index 5a599ca..0000000 --- a/node_modules/mustache/test/_files/check_falsy.js +++ /dev/null @@ -1,7 +0,0 @@ -({ - number: function(text, render) { - return function(text, render) { - return +render(text); - } - } -}) diff --git a/node_modules/mustache/test/_files/check_falsy.mustache b/node_modules/mustache/test/_files/check_falsy.mustache deleted file mode 100644 index 30e2547..0000000 --- a/node_modules/mustache/test/_files/check_falsy.mustache +++ /dev/null @@ -1 +0,0 @@ -

{{#number}}0{{/number}}

diff --git a/node_modules/mustache/test/_files/check_falsy.txt b/node_modules/mustache/test/_files/check_falsy.txt deleted file mode 100644 index 3bb2f51..0000000 --- a/node_modules/mustache/test/_files/check_falsy.txt +++ /dev/null @@ -1 +0,0 @@ -

0

diff --git a/node_modules/mustache/test/_files/comments.js b/node_modules/mustache/test/_files/comments.js deleted file mode 100644 index f20b8b1..0000000 --- a/node_modules/mustache/test/_files/comments.js +++ /dev/null @@ -1,5 +0,0 @@ -({ - title: function () { - return "A Comedy of Errors"; - } -}) diff --git a/node_modules/mustache/test/_files/comments.mustache b/node_modules/mustache/test/_files/comments.mustache deleted file mode 100644 index 5036801..0000000 --- a/node_modules/mustache/test/_files/comments.mustache +++ /dev/null @@ -1 +0,0 @@ -

{{title}}{{! just something interesting... or not... }}

diff --git a/node_modules/mustache/test/_files/comments.txt b/node_modules/mustache/test/_files/comments.txt deleted file mode 100644 index 0133517..0000000 --- a/node_modules/mustache/test/_files/comments.txt +++ /dev/null @@ -1 +0,0 @@ -

A Comedy of Errors

diff --git a/node_modules/mustache/test/_files/complex.js b/node_modules/mustache/test/_files/complex.js deleted file mode 100644 index 68a4809..0000000 --- a/node_modules/mustache/test/_files/complex.js +++ /dev/null @@ -1,19 +0,0 @@ -({ - header: function () { - return "Colors"; - }, - item: [ - {name: "red", current: true, url: "#Red"}, - {name: "green", current: false, url: "#Green"}, - {name: "blue", current: false, url: "#Blue"} - ], - link: function () { - return this["current"] !== true; - }, - list: function () { - return this.item.length !== 0; - }, - empty: function () { - return this.item.length === 0; - } -}) diff --git a/node_modules/mustache/test/_files/complex.mustache b/node_modules/mustache/test/_files/complex.mustache deleted file mode 100644 index 869a4f0..0000000 --- a/node_modules/mustache/test/_files/complex.mustache +++ /dev/null @@ -1,16 +0,0 @@ -

{{header}}

-{{#list}} - -{{/list}} -{{#empty}} -

The list is empty.

-{{/empty}} diff --git a/node_modules/mustache/test/_files/complex.txt b/node_modules/mustache/test/_files/complex.txt deleted file mode 100644 index 596d3f6..0000000 --- a/node_modules/mustache/test/_files/complex.txt +++ /dev/null @@ -1,6 +0,0 @@ -

Colors

- diff --git a/node_modules/mustache/test/_files/context_lookup.js b/node_modules/mustache/test/_files/context_lookup.js deleted file mode 100644 index 8ce6299..0000000 --- a/node_modules/mustache/test/_files/context_lookup.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - "outer": { - "id": 1, - "second": { - "nothing": 2 - } - } -}) diff --git a/node_modules/mustache/test/_files/context_lookup.mustache b/node_modules/mustache/test/_files/context_lookup.mustache deleted file mode 100644 index 3c7b767..0000000 --- a/node_modules/mustache/test/_files/context_lookup.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#outer}}{{#second}}{{id}}{{/second}}{{/outer}} diff --git a/node_modules/mustache/test/_files/context_lookup.txt b/node_modules/mustache/test/_files/context_lookup.txt deleted file mode 100644 index d00491f..0000000 --- a/node_modules/mustache/test/_files/context_lookup.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/node_modules/mustache/test/_files/delimiters.js b/node_modules/mustache/test/_files/delimiters.js deleted file mode 100644 index 365d01e..0000000 --- a/node_modules/mustache/test/_files/delimiters.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - first: "It worked the first time.", - second: "And it worked the second time.", - third: "Then, surprisingly, it worked the third time.", - fourth: "Fourth time also fine!." -}) diff --git a/node_modules/mustache/test/_files/delimiters.mustache b/node_modules/mustache/test/_files/delimiters.mustache deleted file mode 100644 index 7fac846..0000000 --- a/node_modules/mustache/test/_files/delimiters.mustache +++ /dev/null @@ -1,7 +0,0 @@ -{{=<% %>=}}* -<% first %> -* <% second %> -<%=| |=%> -* | third | -|={{ }}=| -* {{ fourth }} diff --git a/node_modules/mustache/test/_files/delimiters.txt b/node_modules/mustache/test/_files/delimiters.txt deleted file mode 100644 index 698a6bb..0000000 --- a/node_modules/mustache/test/_files/delimiters.txt +++ /dev/null @@ -1,5 +0,0 @@ -* -It worked the first time. -* And it worked the second time. -* Then, surprisingly, it worked the third time. -* Fourth time also fine!. diff --git a/node_modules/mustache/test/_files/disappearing_whitespace.js b/node_modules/mustache/test/_files/disappearing_whitespace.js deleted file mode 100644 index 973dd1c..0000000 --- a/node_modules/mustache/test/_files/disappearing_whitespace.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - bedrooms: true, - total: 1 -}) diff --git a/node_modules/mustache/test/_files/disappearing_whitespace.mustache b/node_modules/mustache/test/_files/disappearing_whitespace.mustache deleted file mode 100644 index 16c16e0..0000000 --- a/node_modules/mustache/test/_files/disappearing_whitespace.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#bedrooms}}{{total}}{{/bedrooms}} BED diff --git a/node_modules/mustache/test/_files/disappearing_whitespace.txt b/node_modules/mustache/test/_files/disappearing_whitespace.txt deleted file mode 100644 index 66e98ef..0000000 --- a/node_modules/mustache/test/_files/disappearing_whitespace.txt +++ /dev/null @@ -1 +0,0 @@ -1 BED diff --git a/node_modules/mustache/test/_files/dot_notation.js b/node_modules/mustache/test/_files/dot_notation.js deleted file mode 100644 index de06a03..0000000 --- a/node_modules/mustache/test/_files/dot_notation.js +++ /dev/null @@ -1,23 +0,0 @@ -({ - name: "A Book", - authors: ["John Power", "Jamie Walsh"], - price: { - value: 200, - vat: function () { - return this.value * 0.2; - }, - currency: { - symbol: '$', - name: 'USD' - } - }, - availability: { - status: true, - text: "In Stock" - }, - // And now, some truthy false values - truthy: { - zero: 0, - notTrue: false - } -}) diff --git a/node_modules/mustache/test/_files/dot_notation.mustache b/node_modules/mustache/test/_files/dot_notation.mustache deleted file mode 100644 index f89d70b..0000000 --- a/node_modules/mustache/test/_files/dot_notation.mustache +++ /dev/null @@ -1,9 +0,0 @@ - -

{{name}}

-

Authors:

-

Price: {{{price.currency.symbol}}}{{price.value}} {{#price.currency}}{{name}} {{availability.text}}{{/price.currency}}

-

VAT: {{{price.currency.symbol}}}{{#price}}{{vat}}{{/price}}

- -

Test truthy false values:

-

Zero: {{truthy.zero}}

-

False: {{truthy.notTrue}}

diff --git a/node_modules/mustache/test/_files/dot_notation.txt b/node_modules/mustache/test/_files/dot_notation.txt deleted file mode 100644 index 08afa05..0000000 --- a/node_modules/mustache/test/_files/dot_notation.txt +++ /dev/null @@ -1,9 +0,0 @@ - -

A Book

-

Authors:

-

Price: $200 USD In Stock

-

VAT: $40

- -

Test truthy false values:

-

Zero: 0

-

False: false

diff --git a/node_modules/mustache/test/_files/double_render.js b/node_modules/mustache/test/_files/double_render.js deleted file mode 100644 index 28acb2c..0000000 --- a/node_modules/mustache/test/_files/double_render.js +++ /dev/null @@ -1,5 +0,0 @@ -({ - foo: true, - bar: "{{win}}", - win: "FAIL" -}) diff --git a/node_modules/mustache/test/_files/double_render.mustache b/node_modules/mustache/test/_files/double_render.mustache deleted file mode 100644 index 4500fd7..0000000 --- a/node_modules/mustache/test/_files/double_render.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#foo}}{{bar}}{{/foo}} diff --git a/node_modules/mustache/test/_files/double_render.txt b/node_modules/mustache/test/_files/double_render.txt deleted file mode 100644 index b6e652d..0000000 --- a/node_modules/mustache/test/_files/double_render.txt +++ /dev/null @@ -1 +0,0 @@ -{{win}} diff --git a/node_modules/mustache/test/_files/empty_list.js b/node_modules/mustache/test/_files/empty_list.js deleted file mode 100644 index c0e1159..0000000 --- a/node_modules/mustache/test/_files/empty_list.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - jobs: [] -}) diff --git a/node_modules/mustache/test/_files/empty_list.mustache b/node_modules/mustache/test/_files/empty_list.mustache deleted file mode 100644 index 4fdf13d..0000000 --- a/node_modules/mustache/test/_files/empty_list.mustache +++ /dev/null @@ -1,4 +0,0 @@ -These are the jobs: -{{#jobs}} -{{.}} -{{/jobs}} diff --git a/node_modules/mustache/test/_files/empty_list.txt b/node_modules/mustache/test/_files/empty_list.txt deleted file mode 100644 index d9b4a67..0000000 --- a/node_modules/mustache/test/_files/empty_list.txt +++ /dev/null @@ -1 +0,0 @@ -These are the jobs: diff --git a/node_modules/mustache/test/_files/empty_sections.js b/node_modules/mustache/test/_files/empty_sections.js deleted file mode 100644 index b4100a5..0000000 --- a/node_modules/mustache/test/_files/empty_sections.js +++ /dev/null @@ -1 +0,0 @@ -({}) diff --git a/node_modules/mustache/test/_files/empty_sections.mustache b/node_modules/mustache/test/_files/empty_sections.mustache deleted file mode 100644 index b6065db..0000000 --- a/node_modules/mustache/test/_files/empty_sections.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#foo}}{{/foo}}foo{{#bar}}{{/bar}} diff --git a/node_modules/mustache/test/_files/empty_sections.txt b/node_modules/mustache/test/_files/empty_sections.txt deleted file mode 100644 index 257cc56..0000000 --- a/node_modules/mustache/test/_files/empty_sections.txt +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/node_modules/mustache/test/_files/empty_string.js b/node_modules/mustache/test/_files/empty_string.js deleted file mode 100644 index be6e058..0000000 --- a/node_modules/mustache/test/_files/empty_string.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - description: "That is all!", - child: { - description: "" - } -}) diff --git a/node_modules/mustache/test/_files/empty_string.mustache b/node_modules/mustache/test/_files/empty_string.mustache deleted file mode 100644 index f568441..0000000 --- a/node_modules/mustache/test/_files/empty_string.mustache +++ /dev/null @@ -1 +0,0 @@ -{{description}}{{#child}}{{description}}{{/child}} diff --git a/node_modules/mustache/test/_files/empty_string.txt b/node_modules/mustache/test/_files/empty_string.txt deleted file mode 100644 index 22e2a6e..0000000 --- a/node_modules/mustache/test/_files/empty_string.txt +++ /dev/null @@ -1 +0,0 @@ -That is all! diff --git a/node_modules/mustache/test/_files/empty_template.js b/node_modules/mustache/test/_files/empty_template.js deleted file mode 100644 index b4100a5..0000000 --- a/node_modules/mustache/test/_files/empty_template.js +++ /dev/null @@ -1 +0,0 @@ -({}) diff --git a/node_modules/mustache/test/_files/empty_template.mustache b/node_modules/mustache/test/_files/empty_template.mustache deleted file mode 100644 index bb2367a..0000000 --- a/node_modules/mustache/test/_files/empty_template.mustache +++ /dev/null @@ -1 +0,0 @@ -

Test

\ No newline at end of file diff --git a/node_modules/mustache/test/_files/empty_template.txt b/node_modules/mustache/test/_files/empty_template.txt deleted file mode 100644 index bb2367a..0000000 --- a/node_modules/mustache/test/_files/empty_template.txt +++ /dev/null @@ -1 +0,0 @@ -

Test

\ No newline at end of file diff --git a/node_modules/mustache/test/_files/error_not_found.js b/node_modules/mustache/test/_files/error_not_found.js deleted file mode 100644 index 10e4709..0000000 --- a/node_modules/mustache/test/_files/error_not_found.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - bar: 2 -}) diff --git a/node_modules/mustache/test/_files/error_not_found.mustache b/node_modules/mustache/test/_files/error_not_found.mustache deleted file mode 100644 index 24369f7..0000000 --- a/node_modules/mustache/test/_files/error_not_found.mustache +++ /dev/null @@ -1 +0,0 @@ -{{foo}} \ No newline at end of file diff --git a/node_modules/mustache/test/_files/error_not_found.txt b/node_modules/mustache/test/_files/error_not_found.txt deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/mustache/test/_files/escaped.js b/node_modules/mustache/test/_files/escaped.js deleted file mode 100644 index cd77c1f..0000000 --- a/node_modules/mustache/test/_files/escaped.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - title: function () { - return "Bear > Shark"; - }, - entities: "" \"'<>/" -}) diff --git a/node_modules/mustache/test/_files/escaped.mustache b/node_modules/mustache/test/_files/escaped.mustache deleted file mode 100644 index 93e800b..0000000 --- a/node_modules/mustache/test/_files/escaped.mustache +++ /dev/null @@ -1,2 +0,0 @@ -

{{title}}

-And even {{entities}}, but not {{{entities}}}. diff --git a/node_modules/mustache/test/_files/escaped.txt b/node_modules/mustache/test/_files/escaped.txt deleted file mode 100644 index c1527d5..0000000 --- a/node_modules/mustache/test/_files/escaped.txt +++ /dev/null @@ -1,2 +0,0 @@ -

Bear > Shark

-And even &quot; "'<>/, but not " "'<>/. diff --git a/node_modules/mustache/test/_files/falsy.js b/node_modules/mustache/test/_files/falsy.js deleted file mode 100644 index ae9b9bf..0000000 --- a/node_modules/mustache/test/_files/falsy.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - "emptyString": "", - "emptyArray": [], - "zero": 0, - "null": null, - "undefined": undefined, - "NaN": 0/0 -}) \ No newline at end of file diff --git a/node_modules/mustache/test/_files/falsy.mustache b/node_modules/mustache/test/_files/falsy.mustache deleted file mode 100644 index f3698da..0000000 --- a/node_modules/mustache/test/_files/falsy.mustache +++ /dev/null @@ -1,12 +0,0 @@ -{{#emptyString}}empty string{{/emptyString}} -{{^emptyString}}inverted empty string{{/emptyString}} -{{#emptyArray}}empty array{{/emptyArray}} -{{^emptyArray}}inverted empty array{{/emptyArray}} -{{#zero}}zero{{/zero}} -{{^zero}}inverted zero{{/zero}} -{{#null}}null{{/null}} -{{^null}}inverted null{{/null}} -{{#undefined}}undefined{{/undefined}} -{{^undefined}}inverted undefined{{/undefined}} -{{#NaN}}NaN{{/NaN}} -{{^NaN}}inverted NaN{{/NaN}} diff --git a/node_modules/mustache/test/_files/falsy.txt b/node_modules/mustache/test/_files/falsy.txt deleted file mode 100644 index 9b7cde3..0000000 --- a/node_modules/mustache/test/_files/falsy.txt +++ /dev/null @@ -1,12 +0,0 @@ - -inverted empty string - -inverted empty array - -inverted zero - -inverted null - -inverted undefined - -inverted NaN diff --git a/node_modules/mustache/test/_files/grandparent_context.js b/node_modules/mustache/test/_files/grandparent_context.js deleted file mode 100644 index 97dbfd3..0000000 --- a/node_modules/mustache/test/_files/grandparent_context.js +++ /dev/null @@ -1,19 +0,0 @@ -({ - grand_parent_id: 'grand_parent1', - parent_contexts: [ - { - parent_id: 'parent1', - child_contexts: [ - { child_id: 'parent1-child1' }, - { child_id: 'parent1-child2' } - ] - }, - { - parent_id: 'parent2', - child_contexts: [ - { child_id: 'parent2-child1' }, - { child_id: 'parent2-child2' } - ] - } - ] -}) diff --git a/node_modules/mustache/test/_files/grandparent_context.mustache b/node_modules/mustache/test/_files/grandparent_context.mustache deleted file mode 100644 index e6c07a2..0000000 --- a/node_modules/mustache/test/_files/grandparent_context.mustache +++ /dev/null @@ -1,10 +0,0 @@ -{{grand_parent_id}} -{{#parent_contexts}} -{{grand_parent_id}} -{{parent_id}} -{{#child_contexts}} -{{grand_parent_id}} -{{parent_id}} -{{child_id}} -{{/child_contexts}} -{{/parent_contexts}} diff --git a/node_modules/mustache/test/_files/grandparent_context.txt b/node_modules/mustache/test/_files/grandparent_context.txt deleted file mode 100644 index 64996ad..0000000 --- a/node_modules/mustache/test/_files/grandparent_context.txt +++ /dev/null @@ -1,17 +0,0 @@ -grand_parent1 -grand_parent1 -parent1 -grand_parent1 -parent1 -parent1-child1 -grand_parent1 -parent1 -parent1-child2 -grand_parent1 -parent2 -grand_parent1 -parent2 -parent2-child1 -grand_parent1 -parent2 -parent2-child2 diff --git a/node_modules/mustache/test/_files/higher_order_sections.js b/node_modules/mustache/test/_files/higher_order_sections.js deleted file mode 100644 index bacb0a4..0000000 --- a/node_modules/mustache/test/_files/higher_order_sections.js +++ /dev/null @@ -1,9 +0,0 @@ -({ - name: "Tater", - helper: "To tinker?", - bolder: function () { - return function (text, render) { - return text + ' => ' + render(text) + ' ' + this.helper; - } - } -}) diff --git a/node_modules/mustache/test/_files/higher_order_sections.mustache b/node_modules/mustache/test/_files/higher_order_sections.mustache deleted file mode 100644 index 04f5318..0000000 --- a/node_modules/mustache/test/_files/higher_order_sections.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#bolder}}Hi {{name}}.{{/bolder}} diff --git a/node_modules/mustache/test/_files/higher_order_sections.txt b/node_modules/mustache/test/_files/higher_order_sections.txt deleted file mode 100644 index be50ad7..0000000 --- a/node_modules/mustache/test/_files/higher_order_sections.txt +++ /dev/null @@ -1 +0,0 @@ -Hi {{name}}. => Hi Tater. To tinker? diff --git a/node_modules/mustache/test/_files/included_tag.js b/node_modules/mustache/test/_files/included_tag.js deleted file mode 100644 index eb032a4..0000000 --- a/node_modules/mustache/test/_files/included_tag.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - html: "I like {{mustache}}" -}) diff --git a/node_modules/mustache/test/_files/included_tag.mustache b/node_modules/mustache/test/_files/included_tag.mustache deleted file mode 100644 index 70631c2..0000000 --- a/node_modules/mustache/test/_files/included_tag.mustache +++ /dev/null @@ -1 +0,0 @@ -You said "{{{html}}}" today diff --git a/node_modules/mustache/test/_files/included_tag.txt b/node_modules/mustache/test/_files/included_tag.txt deleted file mode 100644 index 1af4556..0000000 --- a/node_modules/mustache/test/_files/included_tag.txt +++ /dev/null @@ -1 +0,0 @@ -You said "I like {{mustache}}" today diff --git a/node_modules/mustache/test/_files/inverted_section.js b/node_modules/mustache/test/_files/inverted_section.js deleted file mode 100644 index f8f08fd..0000000 --- a/node_modules/mustache/test/_files/inverted_section.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - "repos": [] -}) diff --git a/node_modules/mustache/test/_files/inverted_section.mustache b/node_modules/mustache/test/_files/inverted_section.mustache deleted file mode 100644 index b0a183b..0000000 --- a/node_modules/mustache/test/_files/inverted_section.mustache +++ /dev/null @@ -1,3 +0,0 @@ -{{#repos}}{{name}}{{/repos}} -{{^repos}}No repos :({{/repos}} -{{^nothin}}Hello!{{/nothin}} diff --git a/node_modules/mustache/test/_files/inverted_section.txt b/node_modules/mustache/test/_files/inverted_section.txt deleted file mode 100644 index b421582..0000000 --- a/node_modules/mustache/test/_files/inverted_section.txt +++ /dev/null @@ -1,3 +0,0 @@ - -No repos :( -Hello! diff --git a/node_modules/mustache/test/_files/keys_with_questionmarks.js b/node_modules/mustache/test/_files/keys_with_questionmarks.js deleted file mode 100644 index becd631..0000000 --- a/node_modules/mustache/test/_files/keys_with_questionmarks.js +++ /dev/null @@ -1,5 +0,0 @@ -({ - "person?": { - name: "Jon" - } -}) diff --git a/node_modules/mustache/test/_files/keys_with_questionmarks.mustache b/node_modules/mustache/test/_files/keys_with_questionmarks.mustache deleted file mode 100644 index 417f17f..0000000 --- a/node_modules/mustache/test/_files/keys_with_questionmarks.mustache +++ /dev/null @@ -1,3 +0,0 @@ -{{#person?}} - Hi {{name}}! -{{/person?}} diff --git a/node_modules/mustache/test/_files/keys_with_questionmarks.txt b/node_modules/mustache/test/_files/keys_with_questionmarks.txt deleted file mode 100644 index 0f69b94..0000000 --- a/node_modules/mustache/test/_files/keys_with_questionmarks.txt +++ /dev/null @@ -1 +0,0 @@ - Hi Jon! diff --git a/node_modules/mustache/test/_files/malicious_template.js b/node_modules/mustache/test/_files/malicious_template.js deleted file mode 100644 index b4100a5..0000000 --- a/node_modules/mustache/test/_files/malicious_template.js +++ /dev/null @@ -1 +0,0 @@ -({}) diff --git a/node_modules/mustache/test/_files/malicious_template.mustache b/node_modules/mustache/test/_files/malicious_template.mustache deleted file mode 100644 index b956867..0000000 --- a/node_modules/mustache/test/_files/malicious_template.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{"+(function () {throw "evil"})()+"}} -{{{"+(function () {throw "evil"})()+"}}} -{{> "+(function () {throw "evil"})()+"}} -{{# "+(function () {throw "evil"})()+"}} -{{/ "+(function () {throw "evil"})()+"}} diff --git a/node_modules/mustache/test/_files/malicious_template.txt b/node_modules/mustache/test/_files/malicious_template.txt deleted file mode 100644 index 139597f..0000000 --- a/node_modules/mustache/test/_files/malicious_template.txt +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/node_modules/mustache/test/_files/multiline_comment.js b/node_modules/mustache/test/_files/multiline_comment.js deleted file mode 100644 index b4100a5..0000000 --- a/node_modules/mustache/test/_files/multiline_comment.js +++ /dev/null @@ -1 +0,0 @@ -({}) diff --git a/node_modules/mustache/test/_files/multiline_comment.mustache b/node_modules/mustache/test/_files/multiline_comment.mustache deleted file mode 100644 index dff0893..0000000 --- a/node_modules/mustache/test/_files/multiline_comment.mustache +++ /dev/null @@ -1,6 +0,0 @@ -{{! - -This is a multi-line comment. - -}} -Hello world! diff --git a/node_modules/mustache/test/_files/multiline_comment.txt b/node_modules/mustache/test/_files/multiline_comment.txt deleted file mode 100644 index cd08755..0000000 --- a/node_modules/mustache/test/_files/multiline_comment.txt +++ /dev/null @@ -1 +0,0 @@ -Hello world! diff --git a/node_modules/mustache/test/_files/nested_higher_order_sections.js b/node_modules/mustache/test/_files/nested_higher_order_sections.js deleted file mode 100644 index 3ccf4d3..0000000 --- a/node_modules/mustache/test/_files/nested_higher_order_sections.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - bold: function () { - return function (text, render) { - return '' + render(text) + ''; - }; - }, - person: { name: 'Jonas' } -}); diff --git a/node_modules/mustache/test/_files/nested_higher_order_sections.mustache b/node_modules/mustache/test/_files/nested_higher_order_sections.mustache deleted file mode 100644 index e312fe7..0000000 --- a/node_modules/mustache/test/_files/nested_higher_order_sections.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}} diff --git a/node_modules/mustache/test/_files/nested_higher_order_sections.txt b/node_modules/mustache/test/_files/nested_higher_order_sections.txt deleted file mode 100644 index 0ee6a40..0000000 --- a/node_modules/mustache/test/_files/nested_higher_order_sections.txt +++ /dev/null @@ -1 +0,0 @@ -My name is Jonas! diff --git a/node_modules/mustache/test/_files/nested_iterating.js b/node_modules/mustache/test/_files/nested_iterating.js deleted file mode 100644 index 2708b2d..0000000 --- a/node_modules/mustache/test/_files/nested_iterating.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - inner: [{ - foo: 'foo', - inner: [{ - bar: 'bar' - }] - }] -}) diff --git a/node_modules/mustache/test/_files/nested_iterating.mustache b/node_modules/mustache/test/_files/nested_iterating.mustache deleted file mode 100644 index 1a3bb1a..0000000 --- a/node_modules/mustache/test/_files/nested_iterating.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#inner}}{{foo}}{{#inner}}{{bar}}{{/inner}}{{/inner}} diff --git a/node_modules/mustache/test/_files/nested_iterating.txt b/node_modules/mustache/test/_files/nested_iterating.txt deleted file mode 100644 index 323fae0..0000000 --- a/node_modules/mustache/test/_files/nested_iterating.txt +++ /dev/null @@ -1 +0,0 @@ -foobar diff --git a/node_modules/mustache/test/_files/nesting.js b/node_modules/mustache/test/_files/nesting.js deleted file mode 100644 index 264cc2f..0000000 --- a/node_modules/mustache/test/_files/nesting.js +++ /dev/null @@ -1,7 +0,0 @@ -({ - foo: [ - {a: {b: 1}}, - {a: {b: 2}}, - {a: {b: 3}} - ] -}) diff --git a/node_modules/mustache/test/_files/nesting.mustache b/node_modules/mustache/test/_files/nesting.mustache deleted file mode 100644 index 551366d..0000000 --- a/node_modules/mustache/test/_files/nesting.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{#foo}} - {{#a}} - {{b}} - {{/a}} -{{/foo}} diff --git a/node_modules/mustache/test/_files/nesting.txt b/node_modules/mustache/test/_files/nesting.txt deleted file mode 100644 index 7db34b1..0000000 --- a/node_modules/mustache/test/_files/nesting.txt +++ /dev/null @@ -1,3 +0,0 @@ - 1 - 2 - 3 diff --git a/node_modules/mustache/test/_files/nesting_same_name.js b/node_modules/mustache/test/_files/nesting_same_name.js deleted file mode 100644 index 10a0c14..0000000 --- a/node_modules/mustache/test/_files/nesting_same_name.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - items: [ - { - name: 'name', - items: [1, 2, 3, 4] - } - ] -}) diff --git a/node_modules/mustache/test/_files/nesting_same_name.mustache b/node_modules/mustache/test/_files/nesting_same_name.mustache deleted file mode 100644 index 777dbd6..0000000 --- a/node_modules/mustache/test/_files/nesting_same_name.mustache +++ /dev/null @@ -1 +0,0 @@ -{{#items}}{{name}}{{#items}}{{.}}{{/items}}{{/items}} diff --git a/node_modules/mustache/test/_files/nesting_same_name.txt b/node_modules/mustache/test/_files/nesting_same_name.txt deleted file mode 100644 index 34fcfd3..0000000 --- a/node_modules/mustache/test/_files/nesting_same_name.txt +++ /dev/null @@ -1 +0,0 @@ -name1234 diff --git a/node_modules/mustache/test/_files/null_string.js b/node_modules/mustache/test/_files/null_string.js deleted file mode 100644 index 984ee51..0000000 --- a/node_modules/mustache/test/_files/null_string.js +++ /dev/null @@ -1,10 +0,0 @@ -({ - name: "Elise", - glytch: true, - binary: false, - value: null, - undef: undefined, - numeric: function() { - return NaN; - } -}) diff --git a/node_modules/mustache/test/_files/null_string.mustache b/node_modules/mustache/test/_files/null_string.mustache deleted file mode 100644 index a6f3300..0000000 --- a/node_modules/mustache/test/_files/null_string.mustache +++ /dev/null @@ -1,6 +0,0 @@ -Hello {{name}} -glytch {{glytch}} -binary {{binary}} -value {{value}} -undef {{undef}} -numeric {{numeric}} diff --git a/node_modules/mustache/test/_files/null_string.txt b/node_modules/mustache/test/_files/null_string.txt deleted file mode 100644 index bcabe0a..0000000 --- a/node_modules/mustache/test/_files/null_string.txt +++ /dev/null @@ -1,6 +0,0 @@ -Hello Elise -glytch true -binary false -value -undef -numeric NaN diff --git a/node_modules/mustache/test/_files/null_view.js b/node_modules/mustache/test/_files/null_view.js deleted file mode 100644 index dbdae72..0000000 --- a/node_modules/mustache/test/_files/null_view.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - name: 'Joe', - friends: null -}) diff --git a/node_modules/mustache/test/_files/null_view.mustache b/node_modules/mustache/test/_files/null_view.mustache deleted file mode 100644 index 115b376..0000000 --- a/node_modules/mustache/test/_files/null_view.mustache +++ /dev/null @@ -1 +0,0 @@ -{{name}}'s friends: {{#friends}}{{name}}, {{/friends}} \ No newline at end of file diff --git a/node_modules/mustache/test/_files/null_view.txt b/node_modules/mustache/test/_files/null_view.txt deleted file mode 100644 index 15ed2ab..0000000 --- a/node_modules/mustache/test/_files/null_view.txt +++ /dev/null @@ -1 +0,0 @@ -Joe's friends: \ No newline at end of file diff --git a/node_modules/mustache/test/_files/partial_array.js b/node_modules/mustache/test/_files/partial_array.js deleted file mode 100644 index 2a6ddf1..0000000 --- a/node_modules/mustache/test/_files/partial_array.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - array: ['1', '2', '3', '4'] -}) diff --git a/node_modules/mustache/test/_files/partial_array.mustache b/node_modules/mustache/test/_files/partial_array.mustache deleted file mode 100644 index 7a336fe..0000000 --- a/node_modules/mustache/test/_files/partial_array.mustache +++ /dev/null @@ -1 +0,0 @@ -{{>partial}} \ No newline at end of file diff --git a/node_modules/mustache/test/_files/partial_array.partial b/node_modules/mustache/test/_files/partial_array.partial deleted file mode 100644 index 0ba652c..0000000 --- a/node_modules/mustache/test/_files/partial_array.partial +++ /dev/null @@ -1,4 +0,0 @@ -Here's a non-sense array of values -{{#array}} - {{.}} -{{/array}} diff --git a/node_modules/mustache/test/_files/partial_array.txt b/node_modules/mustache/test/_files/partial_array.txt deleted file mode 100644 index 892837c..0000000 --- a/node_modules/mustache/test/_files/partial_array.txt +++ /dev/null @@ -1,5 +0,0 @@ -Here's a non-sense array of values - 1 - 2 - 3 - 4 diff --git a/node_modules/mustache/test/_files/partial_array_of_partials.js b/node_modules/mustache/test/_files/partial_array_of_partials.js deleted file mode 100644 index 03f13c9..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - numbers: [ - {i: '1'}, - {i: '2'}, - {i: '3'}, - {i: '4'} - ] -}) diff --git a/node_modules/mustache/test/_files/partial_array_of_partials.mustache b/node_modules/mustache/test/_files/partial_array_of_partials.mustache deleted file mode 100644 index 1af6d68..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials.mustache +++ /dev/null @@ -1,4 +0,0 @@ -Here is some stuff! -{{#numbers}} -{{>partial}} -{{/numbers}} diff --git a/node_modules/mustache/test/_files/partial_array_of_partials.partial b/node_modules/mustache/test/_files/partial_array_of_partials.partial deleted file mode 100644 index bdde77d..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials.partial +++ /dev/null @@ -1 +0,0 @@ -{{i}} diff --git a/node_modules/mustache/test/_files/partial_array_of_partials.txt b/node_modules/mustache/test/_files/partial_array_of_partials.txt deleted file mode 100644 index f622375..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials.txt +++ /dev/null @@ -1,5 +0,0 @@ -Here is some stuff! -1 -2 -3 -4 diff --git a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.js b/node_modules/mustache/test/_files/partial_array_of_partials_implicit.js deleted file mode 100644 index 9ec0c00..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - numbers: ['1', '2', '3', '4'] -}) diff --git a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.mustache b/node_modules/mustache/test/_files/partial_array_of_partials_implicit.mustache deleted file mode 100644 index 1af6d68..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.mustache +++ /dev/null @@ -1,4 +0,0 @@ -Here is some stuff! -{{#numbers}} -{{>partial}} -{{/numbers}} diff --git a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.partial b/node_modules/mustache/test/_files/partial_array_of_partials_implicit.partial deleted file mode 100644 index 12f7159..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.partial +++ /dev/null @@ -1 +0,0 @@ -{{.}} diff --git a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.txt b/node_modules/mustache/test/_files/partial_array_of_partials_implicit.txt deleted file mode 100644 index f622375..0000000 --- a/node_modules/mustache/test/_files/partial_array_of_partials_implicit.txt +++ /dev/null @@ -1,5 +0,0 @@ -Here is some stuff! -1 -2 -3 -4 diff --git a/node_modules/mustache/test/_files/partial_empty.js b/node_modules/mustache/test/_files/partial_empty.js deleted file mode 100644 index 82b8c22..0000000 --- a/node_modules/mustache/test/_files/partial_empty.js +++ /dev/null @@ -1,3 +0,0 @@ -({ - foo: 1 -}) diff --git a/node_modules/mustache/test/_files/partial_empty.mustache b/node_modules/mustache/test/_files/partial_empty.mustache deleted file mode 100644 index a710047..0000000 --- a/node_modules/mustache/test/_files/partial_empty.mustache +++ /dev/null @@ -1,2 +0,0 @@ -hey {{foo}} -{{>partial}} diff --git a/node_modules/mustache/test/_files/partial_empty.partial b/node_modules/mustache/test/_files/partial_empty.partial deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/mustache/test/_files/partial_empty.txt b/node_modules/mustache/test/_files/partial_empty.txt deleted file mode 100644 index 1a67907..0000000 --- a/node_modules/mustache/test/_files/partial_empty.txt +++ /dev/null @@ -1 +0,0 @@ -hey 1 diff --git a/node_modules/mustache/test/_files/partial_template.js b/node_modules/mustache/test/_files/partial_template.js deleted file mode 100644 index a913f87..0000000 --- a/node_modules/mustache/test/_files/partial_template.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - title: function () { - return "Welcome"; - }, - again: "Goodbye" -}) diff --git a/node_modules/mustache/test/_files/partial_template.mustache b/node_modules/mustache/test/_files/partial_template.mustache deleted file mode 100644 index 6a7492e..0000000 --- a/node_modules/mustache/test/_files/partial_template.mustache +++ /dev/null @@ -1,2 +0,0 @@ -

{{title}}

-{{>partial}} diff --git a/node_modules/mustache/test/_files/partial_template.partial b/node_modules/mustache/test/_files/partial_template.partial deleted file mode 100644 index a404529..0000000 --- a/node_modules/mustache/test/_files/partial_template.partial +++ /dev/null @@ -1 +0,0 @@ -Again, {{again}}! diff --git a/node_modules/mustache/test/_files/partial_template.txt b/node_modules/mustache/test/_files/partial_template.txt deleted file mode 100644 index 692698f..0000000 --- a/node_modules/mustache/test/_files/partial_template.txt +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome

-Again, Goodbye! diff --git a/node_modules/mustache/test/_files/partial_view.js b/node_modules/mustache/test/_files/partial_view.js deleted file mode 100644 index 3ad70d3..0000000 --- a/node_modules/mustache/test/_files/partial_view.js +++ /dev/null @@ -1,14 +0,0 @@ -({ - greeting: function () { - return "Welcome"; - }, - farewell: function () { - return "Fair enough, right?"; - }, - name: "Chris", - value: 10000, - taxed_value: function () { - return this.value - (this.value * 0.4); - }, - in_ca: true -}) diff --git a/node_modules/mustache/test/_files/partial_view.mustache b/node_modules/mustache/test/_files/partial_view.mustache deleted file mode 100644 index f8f6a5b..0000000 --- a/node_modules/mustache/test/_files/partial_view.mustache +++ /dev/null @@ -1,3 +0,0 @@ -

{{greeting}}

-{{>partial}} -

{{farewell}}

diff --git a/node_modules/mustache/test/_files/partial_view.partial b/node_modules/mustache/test/_files/partial_view.partial deleted file mode 100644 index 03df206..0000000 --- a/node_modules/mustache/test/_files/partial_view.partial +++ /dev/null @@ -1,5 +0,0 @@ -Hello {{name}} -You have just won ${{value}}! -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes. -{{/in_ca}} \ No newline at end of file diff --git a/node_modules/mustache/test/_files/partial_view.txt b/node_modules/mustache/test/_files/partial_view.txt deleted file mode 100644 index c09147c..0000000 --- a/node_modules/mustache/test/_files/partial_view.txt +++ /dev/null @@ -1,5 +0,0 @@ -

Welcome

-Hello Chris -You have just won $10000! -Well, $6000, after taxes. -

Fair enough, right?

diff --git a/node_modules/mustache/test/_files/partial_whitespace.js b/node_modules/mustache/test/_files/partial_whitespace.js deleted file mode 100644 index 3ad70d3..0000000 --- a/node_modules/mustache/test/_files/partial_whitespace.js +++ /dev/null @@ -1,14 +0,0 @@ -({ - greeting: function () { - return "Welcome"; - }, - farewell: function () { - return "Fair enough, right?"; - }, - name: "Chris", - value: 10000, - taxed_value: function () { - return this.value - (this.value * 0.4); - }, - in_ca: true -}) diff --git a/node_modules/mustache/test/_files/partial_whitespace.mustache b/node_modules/mustache/test/_files/partial_whitespace.mustache deleted file mode 100644 index 48bd1ff..0000000 --- a/node_modules/mustache/test/_files/partial_whitespace.mustache +++ /dev/null @@ -1,3 +0,0 @@ -

{{ greeting }}

-{{> partial }} -

{{ farewell }}

diff --git a/node_modules/mustache/test/_files/partial_whitespace.partial b/node_modules/mustache/test/_files/partial_whitespace.partial deleted file mode 100644 index 30de8f6..0000000 --- a/node_modules/mustache/test/_files/partial_whitespace.partial +++ /dev/null @@ -1,5 +0,0 @@ -Hello {{ name}} -You have just won ${{value }}! -{{# in_ca }} -Well, ${{ taxed_value }}, after taxes. -{{/ in_ca }} \ No newline at end of file diff --git a/node_modules/mustache/test/_files/partial_whitespace.txt b/node_modules/mustache/test/_files/partial_whitespace.txt deleted file mode 100644 index c09147c..0000000 --- a/node_modules/mustache/test/_files/partial_whitespace.txt +++ /dev/null @@ -1,5 +0,0 @@ -

Welcome

-Hello Chris -You have just won $10000! -Well, $6000, after taxes. -

Fair enough, right?

diff --git a/node_modules/mustache/test/_files/recursion_with_same_names.js b/node_modules/mustache/test/_files/recursion_with_same_names.js deleted file mode 100644 index ce26502..0000000 --- a/node_modules/mustache/test/_files/recursion_with_same_names.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - name: 'name', - description: 'desc', - terms: [ - {name: 't1', index: 0}, - {name: 't2', index: 1} - ] -}) diff --git a/node_modules/mustache/test/_files/recursion_with_same_names.mustache b/node_modules/mustache/test/_files/recursion_with_same_names.mustache deleted file mode 100644 index c331d04..0000000 --- a/node_modules/mustache/test/_files/recursion_with_same_names.mustache +++ /dev/null @@ -1,7 +0,0 @@ -{{ name }} -{{ description }} - -{{#terms}} - {{name}} - {{index}} -{{/terms}} diff --git a/node_modules/mustache/test/_files/recursion_with_same_names.txt b/node_modules/mustache/test/_files/recursion_with_same_names.txt deleted file mode 100644 index cb15d75..0000000 --- a/node_modules/mustache/test/_files/recursion_with_same_names.txt +++ /dev/null @@ -1,7 +0,0 @@ -name -desc - - t1 - 0 - t2 - 1 diff --git a/node_modules/mustache/test/_files/reuse_of_enumerables.js b/node_modules/mustache/test/_files/reuse_of_enumerables.js deleted file mode 100644 index 4368b57..0000000 --- a/node_modules/mustache/test/_files/reuse_of_enumerables.js +++ /dev/null @@ -1,6 +0,0 @@ -({ - terms: [ - {name: 't1', index: 0}, - {name: 't2', index: 1} - ] -}) diff --git a/node_modules/mustache/test/_files/reuse_of_enumerables.mustache b/node_modules/mustache/test/_files/reuse_of_enumerables.mustache deleted file mode 100644 index cc0cb7a..0000000 --- a/node_modules/mustache/test/_files/reuse_of_enumerables.mustache +++ /dev/null @@ -1,8 +0,0 @@ -{{#terms}} - {{name}} - {{index}} -{{/terms}} -{{#terms}} - {{name}} - {{index}} -{{/terms}} diff --git a/node_modules/mustache/test/_files/reuse_of_enumerables.txt b/node_modules/mustache/test/_files/reuse_of_enumerables.txt deleted file mode 100644 index 6d05d96..0000000 --- a/node_modules/mustache/test/_files/reuse_of_enumerables.txt +++ /dev/null @@ -1,8 +0,0 @@ - t1 - 0 - t2 - 1 - t1 - 0 - t2 - 1 diff --git a/node_modules/mustache/test/_files/section_as_context.js b/node_modules/mustache/test/_files/section_as_context.js deleted file mode 100644 index 425b29c..0000000 --- a/node_modules/mustache/test/_files/section_as_context.js +++ /dev/null @@ -1,10 +0,0 @@ -({ - a_object: { - title: 'this is an object', - description: 'one of its attributes is a list', - a_list: [ - {label: 'listitem1'}, - {label: 'listitem2'} - ] - } -}) diff --git a/node_modules/mustache/test/_files/section_as_context.mustache b/node_modules/mustache/test/_files/section_as_context.mustache deleted file mode 100644 index 59990f6..0000000 --- a/node_modules/mustache/test/_files/section_as_context.mustache +++ /dev/null @@ -1,9 +0,0 @@ -{{#a_object}} -

{{title}}

-

{{description}}

- -{{/a_object}} diff --git a/node_modules/mustache/test/_files/section_as_context.txt b/node_modules/mustache/test/_files/section_as_context.txt deleted file mode 100644 index d834e80..0000000 --- a/node_modules/mustache/test/_files/section_as_context.txt +++ /dev/null @@ -1,6 +0,0 @@ -

this is an object

-

one of its attributes is a list

- diff --git a/node_modules/mustache/test/_files/simple.js b/node_modules/mustache/test/_files/simple.js deleted file mode 100644 index 1d8d6f4..0000000 --- a/node_modules/mustache/test/_files/simple.js +++ /dev/null @@ -1,8 +0,0 @@ -({ - name: "Chris", - value: 10000, - taxed_value: function () { - return this.value - (this.value * 0.4); - }, - in_ca: true -}) diff --git a/node_modules/mustache/test/_files/simple.mustache b/node_modules/mustache/test/_files/simple.mustache deleted file mode 100644 index 2fea632..0000000 --- a/node_modules/mustache/test/_files/simple.mustache +++ /dev/null @@ -1,5 +0,0 @@ -Hello {{name}} -You have just won ${{value}}! -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes. -{{/in_ca}} diff --git a/node_modules/mustache/test/_files/simple.txt b/node_modules/mustache/test/_files/simple.txt deleted file mode 100644 index 5d75d65..0000000 --- a/node_modules/mustache/test/_files/simple.txt +++ /dev/null @@ -1,3 +0,0 @@ -Hello Chris -You have just won $10000! -Well, $6000, after taxes. diff --git a/node_modules/mustache/test/_files/string_as_context.js b/node_modules/mustache/test/_files/string_as_context.js deleted file mode 100644 index e8bb4da..0000000 --- a/node_modules/mustache/test/_files/string_as_context.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - a_string: 'aa', - a_list: ['a','b','c'] -}) diff --git a/node_modules/mustache/test/_files/string_as_context.mustache b/node_modules/mustache/test/_files/string_as_context.mustache deleted file mode 100644 index c6aa11a..0000000 --- a/node_modules/mustache/test/_files/string_as_context.mustache +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/mustache/test/_files/string_as_context.txt b/node_modules/mustache/test/_files/string_as_context.txt deleted file mode 100644 index 35e6306..0000000 --- a/node_modules/mustache/test/_files/string_as_context.txt +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/mustache/test/_files/two_in_a_row.js b/node_modules/mustache/test/_files/two_in_a_row.js deleted file mode 100644 index 9c17c11..0000000 --- a/node_modules/mustache/test/_files/two_in_a_row.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - name: "Joe", - greeting: "Welcome" -}) diff --git a/node_modules/mustache/test/_files/two_in_a_row.mustache b/node_modules/mustache/test/_files/two_in_a_row.mustache deleted file mode 100644 index b23f29e..0000000 --- a/node_modules/mustache/test/_files/two_in_a_row.mustache +++ /dev/null @@ -1 +0,0 @@ -{{greeting}}, {{name}}! diff --git a/node_modules/mustache/test/_files/two_in_a_row.txt b/node_modules/mustache/test/_files/two_in_a_row.txt deleted file mode 100644 index c6d6a9b..0000000 --- a/node_modules/mustache/test/_files/two_in_a_row.txt +++ /dev/null @@ -1 +0,0 @@ -Welcome, Joe! diff --git a/node_modules/mustache/test/_files/two_sections.js b/node_modules/mustache/test/_files/two_sections.js deleted file mode 100644 index b4100a5..0000000 --- a/node_modules/mustache/test/_files/two_sections.js +++ /dev/null @@ -1 +0,0 @@ -({}) diff --git a/node_modules/mustache/test/_files/two_sections.mustache b/node_modules/mustache/test/_files/two_sections.mustache deleted file mode 100644 index a4b9f2a..0000000 --- a/node_modules/mustache/test/_files/two_sections.mustache +++ /dev/null @@ -1,4 +0,0 @@ -{{#foo}} -{{/foo}} -{{#bar}} -{{/bar}} diff --git a/node_modules/mustache/test/_files/two_sections.txt b/node_modules/mustache/test/_files/two_sections.txt deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/mustache/test/_files/unescaped.js b/node_modules/mustache/test/_files/unescaped.js deleted file mode 100644 index b6d064f..0000000 --- a/node_modules/mustache/test/_files/unescaped.js +++ /dev/null @@ -1,5 +0,0 @@ -({ - title: function () { - return "Bear > Shark"; - } -}) diff --git a/node_modules/mustache/test/_files/unescaped.mustache b/node_modules/mustache/test/_files/unescaped.mustache deleted file mode 100644 index 6b07d7b..0000000 --- a/node_modules/mustache/test/_files/unescaped.mustache +++ /dev/null @@ -1 +0,0 @@ -

{{{title}}}

diff --git a/node_modules/mustache/test/_files/unescaped.txt b/node_modules/mustache/test/_files/unescaped.txt deleted file mode 100644 index 089ad79..0000000 --- a/node_modules/mustache/test/_files/unescaped.txt +++ /dev/null @@ -1 +0,0 @@ -

Bear > Shark

diff --git a/node_modules/mustache/test/_files/whitespace.js b/node_modules/mustache/test/_files/whitespace.js deleted file mode 100644 index f41cb56..0000000 --- a/node_modules/mustache/test/_files/whitespace.js +++ /dev/null @@ -1,4 +0,0 @@ -({ - tag1: "Hello", - tag2: "World" -}) diff --git a/node_modules/mustache/test/_files/whitespace.mustache b/node_modules/mustache/test/_files/whitespace.mustache deleted file mode 100644 index aa76e08..0000000 --- a/node_modules/mustache/test/_files/whitespace.mustache +++ /dev/null @@ -1,4 +0,0 @@ -{{tag1}} - - -{{tag2}}. diff --git a/node_modules/mustache/test/_files/whitespace.txt b/node_modules/mustache/test/_files/whitespace.txt deleted file mode 100644 index 851fa74..0000000 --- a/node_modules/mustache/test/_files/whitespace.txt +++ /dev/null @@ -1,4 +0,0 @@ -Hello - - -World. diff --git a/node_modules/mustache/test/context-test.js b/node_modules/mustache/test/context-test.js deleted file mode 100644 index 752f74b..0000000 --- a/node_modules/mustache/test/context-test.js +++ /dev/null @@ -1,51 +0,0 @@ -require('./helper'); -var Context = Mustache.Context; - -describe('A new Mustache.Context', function () { - var context; - beforeEach(function () { - context = new Context({ name: 'parent', message: 'hi', a: { b: 'b' } }); - }); - - it('is able to lookup properties of its own view', function () { - assert.equal(context.lookup('name'), 'parent'); - }); - - it('is able to lookup nested properties of its own view', function () { - assert.equal(context.lookup('a.b'), 'b'); - }); - - describe('when pushed', function () { - beforeEach(function () { - context = context.push({ name: 'child', c: { d: 'd' } }); - }); - - it('returns the child context', function () { - assert.equal(context.view.name, 'child'); - assert.equal(context.parent.view.name, 'parent'); - }); - - it('is able to lookup properties of its own view', function () { - assert.equal(context.lookup('name'), 'child'); - }); - - it("is able to lookup properties of the parent context's view", function () { - assert.equal(context.lookup('message'), 'hi'); - }); - - it('is able to lookup nested properties of its own view', function () { - assert.equal(context.lookup('c.d'), 'd'); - }); - - it('is able to lookup nested properties of its parent view', function () { - assert.equal(context.lookup('a.b'), 'b'); - }); - }); -}); - -describe('Mustache.Context.make', function () { - it('returns the same object when given a Context', function () { - var context = new Context; - assert.strictEqual(Context.make(context), context); - }); -}); diff --git a/node_modules/mustache/test/helper.js b/node_modules/mustache/test/helper.js deleted file mode 100644 index a91fe49..0000000 --- a/node_modules/mustache/test/helper.js +++ /dev/null @@ -1,2 +0,0 @@ -assert = require('assert'); -Mustache = require('../mustache'); diff --git a/node_modules/mustache/test/parse-test.js b/node_modules/mustache/test/parse-test.js deleted file mode 100644 index 40d23a4..0000000 --- a/node_modules/mustache/test/parse-test.js +++ /dev/null @@ -1,106 +0,0 @@ -require('./helper'); - -// A map of templates to their expected token output. Tokens are in the format: -// [type, value, startIndex, endIndex, subTokens]. -var expectations = { - '' : [], - '{{hi}}' : [ [ 'name', 'hi', 0, 6 ] ], - '{{hi.world}}' : [ [ 'name', 'hi.world', 0, 12 ] ], - '{{hi . world}}' : [ [ 'name', 'hi . world', 0, 14 ] ], - '{{ hi}}' : [ [ 'name', 'hi', 0, 7 ] ], - '{{hi }}' : [ [ 'name', 'hi', 0, 7 ] ], - '{{ hi }}' : [ [ 'name', 'hi', 0, 8 ] ], - '{{{hi}}}' : [ [ '&', 'hi', 0, 8 ] ], - '{{!hi}}' : [ [ '!', 'hi', 0, 7 ] ], - '{{! hi}}' : [ [ '!', 'hi', 0, 8 ] ], - '{{! hi }}' : [ [ '!', 'hi', 0, 9 ] ], - '{{ !hi}}' : [ [ '!', 'hi', 0, 8 ] ], - '{{ ! hi}}' : [ [ '!', 'hi', 0, 9 ] ], - '{{ ! hi }}' : [ [ '!', 'hi', 0, 10 ] ], - 'a\n b' : [ [ 'text', 'a\n b', 0, 4 ] ], - 'a{{hi}}' : [ [ 'text', 'a', 0, 1 ], [ 'name', 'hi', 1, 7 ] ], - 'a {{hi}}' : [ [ 'text', 'a ', 0, 2 ], [ 'name', 'hi', 2, 8 ] ], - ' a{{hi}}' : [ [ 'text', ' a', 0, 2 ], [ 'name', 'hi', 2, 8 ] ], - ' a {{hi}}' : [ [ 'text', ' a ', 0, 3 ], [ 'name', 'hi', 3, 9 ] ], - 'a{{hi}}b' : [ [ 'text', 'a', 0, 1 ], [ 'name', 'hi', 1, 7 ], [ 'text', 'b', 7, 8 ] ], - 'a{{hi}} b' : [ [ 'text', 'a', 0, 1 ], [ 'name', 'hi', 1, 7 ], [ 'text', ' b', 7, 9 ] ], - 'a{{hi}}b ' : [ [ 'text', 'a', 0, 1 ], [ 'name', 'hi', 1, 7 ], [ 'text', 'b ', 7, 9 ] ], - 'a\n{{hi}} b \n' : [ [ 'text', 'a\n', 0, 2 ], [ 'name', 'hi', 2, 8 ], [ 'text', ' b \n', 8, 12 ] ], - 'a\n {{hi}} \nb' : [ [ 'text', 'a\n ', 0, 3 ], [ 'name', 'hi', 3, 9 ], [ 'text', ' \nb', 9, 12 ] ], - 'a\n {{!hi}} \nb' : [ [ 'text', 'a\n', 0, 2 ], [ '!', 'hi', 3, 10 ], [ 'text', 'b', 12, 13 ] ], - 'a\n{{#a}}{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 2, 8, [], 8 ], [ 'text', 'b', 15, 16 ] ], - 'a\n {{#a}}{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 9 ], [ 'text', 'b', 16, 17 ] ], - 'a\n {{#a}}{{/a}} \nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 9 ], [ 'text', 'b', 17, 18 ] ], - 'a\n{{#a}}\n{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 2, 8, [], 9 ], [ 'text', 'b', 16, 17 ] ], - 'a\n {{#a}}\n{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 10 ], [ 'text', 'b', 17, 18 ] ], - 'a\n {{#a}}\n{{/a}} \nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 10 ], [ 'text', 'b', 18, 19 ] ], - 'a\n{{#a}}\n{{/a}}\n{{#b}}\n{{/b}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 2, 8, [], 9 ], [ '#', 'b', 16, 22, [], 23 ], [ 'text', 'b', 30, 31 ] ], - 'a\n {{#a}}\n{{/a}}\n{{#b}}\n{{/b}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 10 ], [ '#', 'b', 17, 23, [], 24 ], [ 'text', 'b', 31, 32 ] ], - 'a\n {{#a}}\n{{/a}}\n{{#b}}\n{{/b}} \nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [], 10 ], [ '#', 'b', 17, 23, [], 24 ], [ 'text', 'b', 32, 33 ] ], - 'a\n{{#a}}\n{{#b}}\n{{/b}}\n{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 2, 8, [ [ '#', 'b', 9, 15, [], 16 ] ], 23 ], [ 'text', 'b', 30, 31 ] ], - 'a\n {{#a}}\n{{#b}}\n{{/b}}\n{{/a}}\nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [ [ '#', 'b', 10, 16, [], 17 ] ], 24 ], [ 'text', 'b', 31, 32 ] ], - 'a\n {{#a}}\n{{#b}}\n{{/b}}\n{{/a}} \nb' : [ [ 'text', 'a\n', 0, 2 ], [ '#', 'a', 3, 9, [ [ '#', 'b', 10, 16, [], 17 ] ], 24 ], [ 'text', 'b', 32, 33 ] ], - '{{>abc}}' : [ [ '>', 'abc', 0, 8 ] ], - '{{> abc }}' : [ [ '>', 'abc', 0, 10 ] ], - '{{ > abc }}' : [ [ '>', 'abc', 0, 11 ] ], - '{{=<% %>=}}' : [ [ '=', '<% %>', 0, 11 ] ], - '{{= <% %> =}}' : [ [ '=', '<% %>', 0, 13 ] ], - '{{=<% %>=}}<%={{ }}=%>' : [ [ '=', '<% %>', 0, 11 ], [ '=', '{{ }}', 11, 22 ] ], - '{{=<% %>=}}<%hi%>' : [ [ '=', '<% %>', 0, 11 ], [ 'name', 'hi', 11, 17 ] ], - '{{#a}}{{/a}}hi{{#b}}{{/b}}\n' : [ [ '#', 'a', 0, 6, [], 6 ], [ 'text', 'hi', 12, 14 ], [ '#', 'b', 14, 20, [], 20 ], [ 'text', '\n', 26, 27 ] ], - '{{a}}\n{{b}}\n\n{{#c}}\n{{/c}}\n' : [ [ 'name', 'a', 0, 5 ], [ 'text', '\n', 5, 6 ], [ 'name', 'b', 6, 11 ], [ 'text', '\n\n', 11, 13 ], [ '#', 'c', 13, 19, [], 20 ] ], - '{{#foo}}\n {{#a}}\n {{b}}\n {{/a}}\n{{/foo}}\n' - : [ [ '#', 'foo', 0, 8, [ [ '#', 'a', 11, 17, [ [ 'text', ' ', 18, 22 ], [ 'name', 'b', 22, 27 ], [ 'text', '\n', 27, 28 ] ], 30 ] ], 37 ] ] -}; - -describe('Mustache.parse', function () { - - for (var template in expectations) { - (function (template, tokens) { - it('knows how to parse ' + JSON.stringify(template), function () { - assert.deepEqual(Mustache.parse(template), tokens); - }); - })(template, expectations[template]); - } - - describe('when there is an unclosed tag', function () { - it('throws an error', function () { - assert.throws(function () { - Mustache.parse('My name is {{name'); - }, /unclosed tag at 17/i); - }); - }); - - describe('when there is an unclosed section', function () { - it('throws an error', function () { - assert.throws(function () { - Mustache.parse('A list: {{#people}}{{name}}'); - }, /unclosed section "people" at 27/i); - }); - }); - - describe('when there is an unopened section', function () { - it('throws an error', function () { - assert.throws(function () { - Mustache.parse('The end of the list! {{/people}}'); - }, /unopened section "people" at 21/i); - }); - }); - - describe('when invalid tags are given as an argument', function () { - it('throws an error', function () { - assert.throws(function () { - Mustache.parse('A template <% name %>', [ '<%' ]); - }, /invalid tags/i); - }); - }); - - describe('when the template contains invalid tags', function () { - it('throws an error', function () { - assert.throws(function () { - Mustache.parse('A template {{=<%=}}'); - }, /invalid tags at 11/i); - }); - }); - -}); diff --git a/node_modules/mustache/test/render-test.js b/node_modules/mustache/test/render-test.js deleted file mode 100644 index acec47f..0000000 --- a/node_modules/mustache/test/render-test.js +++ /dev/null @@ -1,68 +0,0 @@ -require('./helper'); - -var fs = require('fs'); -var path = require('path'); -var _files = path.join(__dirname, '_files'); - -function getContents(testName, ext) { - return fs.readFileSync(path.join(_files, testName + '.' + ext), 'utf8'); -} - -function getView(testName) { - var view = getContents(testName, 'js'); - if (!view) throw new Error('Cannot find view for test "' + testName + '"'); - return eval(view); -} - -function getPartial(testName) { - try { - return getContents(testName, 'partial'); - } catch (e) { - // No big deal. Not all tests need to test partial support. - } -} - -function getTest(testName) { - var test = {}; - test.view = getView(testName); - test.template = getContents(testName, 'mustache'); - test.partial = getPartial(testName); - test.expect = getContents(testName, 'txt'); - return test; -} - -// You can put the name of a specific test to run in the TEST environment -// variable (e.g. TEST=backslashes vows test/render-test.js) -var testToRun = process.env.TEST; - -var testNames; -if (testToRun) { - testNames = [testToRun]; -} else { - testNames = fs.readdirSync(_files).filter(function (file) { - return (/\.js$/).test(file); - }).map(function (file) { - return path.basename(file).replace(/\.js$/, ''); - }); -} - -describe('Mustache.render', function () { - beforeEach(function () { - Mustache.clearCache(); - }); - - testNames.forEach(function (testName) { - var test = getTest(testName); - - it('knows how to render ' + testName, function () { - var output; - if (test.partial) { - output = Mustache.render(test.template, test.view, { partial: test.partial }); - } else { - output = Mustache.render(test.template, test.view); - } - - assert.equal(output, test.expect); - }); - }); -}); diff --git a/node_modules/mustache/test/scanner-test.js b/node_modules/mustache/test/scanner-test.js deleted file mode 100644 index 9c97664..0000000 --- a/node_modules/mustache/test/scanner-test.js +++ /dev/null @@ -1,78 +0,0 @@ -require('./helper'); -var Scanner = Mustache.Scanner; - -describe('A new Mustache.Scanner', function () { - describe('for an empty string', function () { - it('is at the end', function () { - var scanner = new Scanner(''); - assert(scanner.eos()); - }); - }); - - describe('for a non-empty string', function () { - var scanner; - beforeEach(function () { - scanner = new Scanner('a b c'); - }); - - describe('scan', function () { - describe('when the RegExp matches the entire string', function () { - it('returns the entire string', function () { - var match = scanner.scan(/a b c/); - assert.equal(match, scanner.string); - assert(scanner.eos()); - }); - }); - - describe('when the RegExp matches at index 0', function () { - it('returns the portion of the string that matched', function () { - var match = scanner.scan(/a/); - assert.equal(match, 'a'); - assert.equal(scanner.pos, 1); - }); - }); - - describe('when the RegExp matches at some index other than 0', function () { - it('returns the empty string', function () { - var match = scanner.scan(/b/); - assert.equal(match, ''); - assert.equal(scanner.pos, 0); - }); - }); - - describe('when the RegExp does not match', function () { - it('returns the empty string', function () { - var match = scanner.scan(/z/); - assert.equal(match, ''); - assert.equal(scanner.pos, 0); - }); - }); - }); // scan - - describe('scanUntil', function () { - describe('when the RegExp matches at index 0', function () { - it('returns the empty string', function () { - var match = scanner.scanUntil(/a/); - assert.equal(match, ''); - assert.equal(scanner.pos, 0); - }); - }); - - describe('when the RegExp matches at some index other than 0', function () { - it('returns the string up to that index', function () { - var match = scanner.scanUntil(/b/); - assert.equal(match, 'a '); - assert.equal(scanner.pos, 2); - }); - }); - - describe('when the RegExp does not match', function () { - it('returns the entire string', function () { - var match = scanner.scanUntil(/z/); - assert.equal(match, scanner.string); - assert(scanner.eos()); - }); - }); - }); // scanUntil - }); // for a non-empty string -}); diff --git a/node_modules/mustache/test/writer-test.js b/node_modules/mustache/test/writer-test.js deleted file mode 100644 index db2813a..0000000 --- a/node_modules/mustache/test/writer-test.js +++ /dev/null @@ -1,43 +0,0 @@ -require('./helper'); -var Writer = Mustache.Writer; - -describe('A new Mustache.Writer', function () { - var writer; - beforeEach(function () { - writer = new Writer; - }); - - it('loads partials correctly', function () { - var partial = 'The content of the partial.'; - var result = writer.render('{{>partial}}', {}, function (name) { - assert.equal(name, 'partial'); - return partial; - }); - - assert.equal(result, partial); - }); - - it('caches partials by content, not name', function () { - var result = writer.render('{{>partial}}', {}, { - partial: 'partial one' - }); - - assert.equal(result, 'partial one'); - - result = writer.render('{{>partial}}', {}, { - partial: 'partial two' - }); - - assert.equal(result, 'partial two'); - }); - - it('can compile an array of tokens', function () { - var template = 'Hello {{name}}!'; - var tokens = Mustache.parse(template); - var render = writer.compileTokens(tokens, template); - - var result = render({ name: 'Michael' }); - - assert.equal(result, 'Hello Michael!'); - }); -}); diff --git a/node_modules/mustache/wrappers/dojo/mustache.js.post b/node_modules/mustache/wrappers/dojo/mustache.js.post deleted file mode 100644 index eeeb4b7..0000000 --- a/node_modules/mustache/wrappers/dojo/mustache.js.post +++ /dev/null @@ -1,4 +0,0 @@ - - dojox.mustache = dojo.hitch(Mustache, "render"); - -})(); \ No newline at end of file diff --git a/node_modules/mustache/wrappers/dojo/mustache.js.pre b/node_modules/mustache/wrappers/dojo/mustache.js.pre deleted file mode 100644 index f87f3cd..0000000 --- a/node_modules/mustache/wrappers/dojo/mustache.js.pre +++ /dev/null @@ -1,9 +0,0 @@ -/* -Shameless port of a shameless port -@defunkt => @janl => @aq => @voodootikigod - -See http://github.com/defunkt/mustache for more info. -*/ - -dojo.provide("dojox.mustache._base"); -(function(){ diff --git a/node_modules/mustache/wrappers/jquery/mustache.js.post b/node_modules/mustache/wrappers/jquery/mustache.js.post deleted file mode 100644 index d27d730..0000000 --- a/node_modules/mustache/wrappers/jquery/mustache.js.post +++ /dev/null @@ -1,14 +0,0 @@ - - $.mustache = function (template, view, partials) { - return Mustache.render(template, view, partials); - }; - - $.fn.mustache = function (view, partials) { - return $(this).map(function (i, elm) { - var template = $(elm).html().trim(); - var output = $.mustache(template, view, partials); - return $(output).get(); - }); - }; - -})(jQuery); diff --git a/node_modules/mustache/wrappers/jquery/mustache.js.pre b/node_modules/mustache/wrappers/jquery/mustache.js.pre deleted file mode 100644 index b4d8af5..0000000 --- a/node_modules/mustache/wrappers/jquery/mustache.js.pre +++ /dev/null @@ -1,9 +0,0 @@ -/* -Shameless port of a shameless port -@defunkt => @janl => @aq - -See http://github.com/defunkt/mustache for more info. -*/ - -;(function($) { - diff --git a/node_modules/mustache/wrappers/mootools/mustache.js.post b/node_modules/mustache/wrappers/mootools/mustache.js.post deleted file mode 100644 index aa9b8fa..0000000 --- a/node_modules/mustache/wrappers/mootools/mustache.js.post +++ /dev/null @@ -1,5 +0,0 @@ - - Object.implement('mustache', function(view, partials){ - return Mustache.render(view, this, partials); - }); -})(); diff --git a/node_modules/mustache/wrappers/mootools/mustache.js.pre b/node_modules/mustache/wrappers/mootools/mustache.js.pre deleted file mode 100644 index 9839f99..0000000 --- a/node_modules/mustache/wrappers/mootools/mustache.js.pre +++ /dev/null @@ -1,2 +0,0 @@ -(function(){ - diff --git a/node_modules/mustache/wrappers/qooxdoo/mustache.js.post b/node_modules/mustache/wrappers/qooxdoo/mustache.js.post deleted file mode 100644 index aba7af6..0000000 --- a/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Above is the original mustache code. - */ - -// EXPOSE qooxdoo variant -qx.bom.Template.version = Mustache.version; -qx.bom.Template.render = Mustache.render; - -})(); diff --git a/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre b/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre deleted file mode 100644 index b51ccf9..0000000 --- a/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +++ /dev/null @@ -1,134 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2012 1&1 Internet AG, Germany, http://www.1und1.de - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Martin Wittemann (martinwittemann) - - ====================================================================== - - This class contains code based on the following work: - - * Mustache.js version 0.5.1-dev - - Code: - https://github.com/janl/mustache.js - - Copyright: - (c) 2009 Chris Wanstrath (Ruby) - (c) 2010 Jan Lehnardt (JavaScript) - - License: - MIT: http://www.opensource.org/licenses/mit-license.php - - ---------------------------------------------------------------------- - - Copyright (c) 2009 Chris Wanstrath (Ruby) - Copyright (c) 2010 Jan Lehnardt (JavaScript) - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -************************************************************************ */ - -/** - * The is a template class which can be used for HTML templating. In fact, - * this is a wrapper for mustache.js which is a "framework-agnostic way to - * render logic-free views". - * - * Here is a basic example how to use it: - * Template: - *
- * var template = "Hi, my name is {{name}}!";
- * var view = {name: "qooxdoo"};
- * qx.bom.Template.toHtml(template, view);
- * // return "Hi, my name is qooxdoo!"
- * 
- * - * For further details, please visit the mustache.js documentation here: - * https://github.com/janl/mustache.js/blob/master/README.md - */ -qx.Bootstrap.define("qx.bom.Template", { - statics : { - /** Contains the mustache.js version. */ - version: null, - - /** - * Original and only template method of mustache.js. For further - * documentation, please visit https://github.com/janl/mustache.js - * - * @signature function(template, view, partials) - * @param template {String} The String containing the template. - * @param view {Object} The object holding the data to render. - * @param partials {Object} Object holding parts of a template. - * @return {String} The parsed template. - */ - render: null, - - - /** - * Helper method which provides you with a direct access to templates - * stored as HTML in the DOM. The DOM node with the given ID will be used - * as a template, parsed and a new DOM node will be returned containing the - * parsed data. Keep in mind to have only one root DOM element in the the - * template. - * - * @param id {String} The id of the HTML template in the DOM. - * @param view {Object} The object holding the data to render. - * @param partials {Object} Object holding parts of a template. - * @return {DomNode} A DOM element holding the parsed template data. - */ - get : function(id, view, partials) { - // get the content stored in the DOM - var template = document.getElementById(id); - var inner = template.innerHTML; - - // apply the view - inner = this.toHtml(inner, view, partials); - - // special case for text only conversion - if (inner.search(/<|>/) === -1) { - return inner; - } - - // create a helper to convert the string into DOM nodes - var helper = qx.bom.Element.create("div"); - helper.innerHTML = inner; - - return helper.children[0]; - } - } -}); - -(function() { - -/** - * Below is the original mustache.js code. Snapshot date is mentioned in - * the head of this file. - */