From 57c2f15249c91ba5b359dbf6d02e41b13d39214d Mon Sep 17 00:00:00 2001
From: BRIAN MUENZENMEYER
Date: Thu, 24 Oct 2013 21:11:52 -0500
Subject: [PATCH] a clean commit
as patternlab-node was a fork of patternlab-php, it did not let me
transfer ownership. will migrate issues manually
---
.gitignore | 21 +
CHANGELOG | 13 +
Gruntfile.js | 68 +
README.md | 78 +
builder/lib/Mustache/.gitignore | 10 +
builder/lib/Mustache/.gitmodules | 3 +
builder/lib/Mustache/.jshintrc | 5 +
builder/lib/Mustache/.travis.yml | 4 +
builder/lib/Mustache/CHANGES | 43 +
builder/lib/Mustache/LICENSE | 10 +
builder/lib/Mustache/README.md | 405 +
builder/lib/Mustache/Rakefile | 68 +
builder/lib/Mustache/mustache.js | 536 +
builder/lib/Mustache/mustache.js.nuspec | 14 +
builder/lib/Mustache/package.json | 21 +
.../Mustache/test/_files/ampersand_escape.js | 3 +
.../test/_files/ampersand_escape.mustache | 1 +
.../Mustache/test/_files/ampersand_escape.txt | 1 +
.../lib/Mustache/test/_files/apostrophe.js | 4 +
.../Mustache/test/_files/apostrophe.mustache | 1 +
.../lib/Mustache/test/_files/apostrophe.txt | 1 +
.../Mustache/test/_files/array_of_strings.js | 3 +
.../test/_files/array_of_strings.mustache | 1 +
.../Mustache/test/_files/array_of_strings.txt | 1 +
.../lib/Mustache/test/_files/backslashes.js | 3 +
.../Mustache/test/_files/backslashes.mustache | 7 +
.../lib/Mustache/test/_files/backslashes.txt | 7 +
.../test/_files/bug_11_eating_whitespace.js | 3 +
.../_files/bug_11_eating_whitespace.mustache | 1 +
.../test/_files/bug_11_eating_whitespace.txt | 1 +
.../test/_files/changing_delimiters.js | 4 +
.../test/_files/changing_delimiters.mustache | 1 +
.../test/_files/changing_delimiters.txt | 1 +
.../lib/Mustache/test/_files/check_falsy.js | 7 +
.../Mustache/test/_files/check_falsy.mustache | 1 +
.../lib/Mustache/test/_files/check_falsy.txt | 1 +
builder/lib/Mustache/test/_files/comments.js | 5 +
.../Mustache/test/_files/comments.mustache | 1 +
builder/lib/Mustache/test/_files/comments.txt | 1 +
builder/lib/Mustache/test/_files/complex.js | 19 +
.../lib/Mustache/test/_files/complex.mustache | 16 +
builder/lib/Mustache/test/_files/complex.txt | 6 +
.../Mustache/test/_files/context_lookup.js | 8 +
.../test/_files/context_lookup.mustache | 1 +
.../Mustache/test/_files/context_lookup.txt | 1 +
.../lib/Mustache/test/_files/delimiters.js | 6 +
.../Mustache/test/_files/delimiters.mustache | 7 +
.../lib/Mustache/test/_files/delimiters.txt | 5 +
.../test/_files/disappearing_whitespace.js | 4 +
.../_files/disappearing_whitespace.mustache | 1 +
.../test/_files/disappearing_whitespace.txt | 1 +
.../lib/Mustache/test/_files/dot_notation.js | 23 +
.../test/_files/dot_notation.mustache | 9 +
.../lib/Mustache/test/_files/dot_notation.txt | 9 +
.../lib/Mustache/test/_files/double_render.js | 5 +
.../test/_files/double_render.mustache | 1 +
.../Mustache/test/_files/double_render.txt | 1 +
.../lib/Mustache/test/_files/empty_list.js | 3 +
.../Mustache/test/_files/empty_list.mustache | 4 +
.../lib/Mustache/test/_files/empty_list.txt | 1 +
.../Mustache/test/_files/empty_sections.js | 1 +
.../test/_files/empty_sections.mustache | 1 +
.../Mustache/test/_files/empty_sections.txt | 1 +
.../lib/Mustache/test/_files/empty_string.js | 6 +
.../test/_files/empty_string.mustache | 1 +
.../lib/Mustache/test/_files/empty_string.txt | 1 +
.../Mustache/test/_files/empty_template.js | 1 +
.../test/_files/empty_template.mustache | 1 +
.../Mustache/test/_files/empty_template.txt | 1 +
.../Mustache/test/_files/error_not_found.js | 3 +
.../test/_files/error_not_found.mustache | 1 +
.../Mustache/test/_files/error_not_found.txt | 0
builder/lib/Mustache/test/_files/escaped.js | 6 +
.../lib/Mustache/test/_files/escaped.mustache | 2 +
builder/lib/Mustache/test/_files/escaped.txt | 2 +
builder/lib/Mustache/test/_files/falsy.js | 8 +
.../lib/Mustache/test/_files/falsy.mustache | 12 +
builder/lib/Mustache/test/_files/falsy.txt | 12 +
.../test/_files/grandparent_context.js | 19 +
.../test/_files/grandparent_context.mustache | 10 +
.../test/_files/grandparent_context.txt | 17 +
.../test/_files/higher_order_sections.js | 9 +
.../_files/higher_order_sections.mustache | 1 +
.../test/_files/higher_order_sections.txt | 1 +
.../lib/Mustache/test/_files/included_tag.js | 3 +
.../test/_files/included_tag.mustache | 1 +
.../lib/Mustache/test/_files/included_tag.txt | 1 +
.../Mustache/test/_files/inverted_section.js | 3 +
.../test/_files/inverted_section.mustache | 3 +
.../Mustache/test/_files/inverted_section.txt | 3 +
.../test/_files/keys_with_questionmarks.js | 5 +
.../_files/keys_with_questionmarks.mustache | 3 +
.../test/_files/keys_with_questionmarks.txt | 1 +
.../test/_files/malicious_template.js | 1 +
.../test/_files/malicious_template.mustache | 5 +
.../test/_files/malicious_template.txt | 2 +
.../Mustache/test/_files/multiline_comment.js | 1 +
.../test/_files/multiline_comment.mustache | 6 +
.../test/_files/multiline_comment.txt | 1 +
.../_files/nested_higher_order_sections.js | 8 +
.../nested_higher_order_sections.mustache | 1 +
.../_files/nested_higher_order_sections.txt | 1 +
.../Mustache/test/_files/nested_iterating.js | 8 +
.../test/_files/nested_iterating.mustache | 1 +
.../Mustache/test/_files/nested_iterating.txt | 1 +
builder/lib/Mustache/test/_files/nesting.js | 7 +
.../lib/Mustache/test/_files/nesting.mustache | 5 +
builder/lib/Mustache/test/_files/nesting.txt | 3 +
.../Mustache/test/_files/nesting_same_name.js | 8 +
.../test/_files/nesting_same_name.mustache | 1 +
.../test/_files/nesting_same_name.txt | 1 +
.../lib/Mustache/test/_files/null_string.js | 10 +
.../Mustache/test/_files/null_string.mustache | 6 +
.../lib/Mustache/test/_files/null_string.txt | 6 +
builder/lib/Mustache/test/_files/null_view.js | 4 +
.../Mustache/test/_files/null_view.mustache | 1 +
.../lib/Mustache/test/_files/null_view.txt | 1 +
.../lib/Mustache/test/_files/partial_array.js | 3 +
.../test/_files/partial_array.mustache | 1 +
.../test/_files/partial_array.partial | 4 +
.../Mustache/test/_files/partial_array.txt | 5 +
.../test/_files/partial_array_of_partials.js | 8 +
.../_files/partial_array_of_partials.mustache | 4 +
.../_files/partial_array_of_partials.partial | 1 +
.../test/_files/partial_array_of_partials.txt | 5 +
.../partial_array_of_partials_implicit.js | 3 +
...artial_array_of_partials_implicit.mustache | 4 +
...partial_array_of_partials_implicit.partial | 1 +
.../partial_array_of_partials_implicit.txt | 5 +
.../lib/Mustache/test/_files/partial_empty.js | 3 +
.../test/_files/partial_empty.mustache | 2 +
.../test/_files/partial_empty.partial | 0
.../Mustache/test/_files/partial_empty.txt | 1 +
.../Mustache/test/_files/partial_template.js | 6 +
.../test/_files/partial_template.mustache | 2 +
.../test/_files/partial_template.partial | 1 +
.../Mustache/test/_files/partial_template.txt | 2 +
.../lib/Mustache/test/_files/partial_view.js | 14 +
.../test/_files/partial_view.mustache | 3 +
.../Mustache/test/_files/partial_view.partial | 5 +
.../lib/Mustache/test/_files/partial_view.txt | 5 +
.../test/_files/partial_whitespace.js | 14 +
.../test/_files/partial_whitespace.mustache | 3 +
.../test/_files/partial_whitespace.partial | 5 +
.../test/_files/partial_whitespace.txt | 5 +
.../test/_files/recursion_with_same_names.js | 8 +
.../_files/recursion_with_same_names.mustache | 7 +
.../test/_files/recursion_with_same_names.txt | 7 +
.../test/_files/reuse_of_enumerables.js | 6 +
.../test/_files/reuse_of_enumerables.mustache | 8 +
.../test/_files/reuse_of_enumerables.txt | 8 +
.../test/_files/section_as_context.js | 10 +
.../test/_files/section_as_context.mustache | 9 +
.../test/_files/section_as_context.txt | 6 +
builder/lib/Mustache/test/_files/simple.js | 8 +
.../lib/Mustache/test/_files/simple.mustache | 5 +
builder/lib/Mustache/test/_files/simple.txt | 3 +
.../Mustache/test/_files/string_as_context.js | 4 +
.../test/_files/string_as_context.mustache | 5 +
.../test/_files/string_as_context.txt | 5 +
.../lib/Mustache/test/_files/two_in_a_row.js | 4 +
.../test/_files/two_in_a_row.mustache | 1 +
.../lib/Mustache/test/_files/two_in_a_row.txt | 1 +
.../lib/Mustache/test/_files/two_sections.js | 1 +
.../test/_files/two_sections.mustache | 4 +
.../lib/Mustache/test/_files/two_sections.txt | 0
builder/lib/Mustache/test/_files/unescaped.js | 5 +
.../Mustache/test/_files/unescaped.mustache | 1 +
.../lib/Mustache/test/_files/unescaped.txt | 1 +
.../lib/Mustache/test/_files/whitespace.js | 4 +
.../Mustache/test/_files/whitespace.mustache | 4 +
.../lib/Mustache/test/_files/whitespace.txt | 4 +
builder/lib/Mustache/test/context-test.js | 51 +
builder/lib/Mustache/test/helper.js | 2 +
.../lib/Mustache/test/mustache-spec-test.js | 89 +
builder/lib/Mustache/test/parse-test.js | 106 +
builder/lib/Mustache/test/render-test.js | 68 +
builder/lib/Mustache/test/scanner-test.js | 78 +
builder/lib/Mustache/test/writer-test.js | 43 +
.../Mustache/wrappers/dojo/mustache.js.post | 4 +
.../Mustache/wrappers/dojo/mustache.js.pre | 9 +
.../Mustache/wrappers/jquery/mustache.js.post | 13 +
.../Mustache/wrappers/jquery/mustache.js.pre | 9 +
.../wrappers/mootools/mustache.js.post | 5 +
.../wrappers/mootools/mustache.js.pre | 2 +
.../wrappers/qooxdoo/mustache.js.post | 9 +
.../Mustache/wrappers/qooxdoo/mustache.js.pre | 164 +
builder/patternlab.js | 330 +
config/config.json | 10 +
extras/apache/README | 37 +
extras/apache/vhost.txt | 5 +
listeners/contentSyncBroadcasterServer.php | 43 +
listeners/lib/LICENSE | 13 +
listeners/lib/SplClassLoader.php | 136 +
.../lib/Wrench/Application/Application.php | 34 +
.../contentSyncBroadcasterApplication.php | 80 +
.../navSyncBroadcasterApplication.php | 71 +
listeners/lib/Wrench/BasicServer.php | 70 +
listeners/lib/Wrench/Client.php | 265 +
listeners/lib/Wrench/Connection.php | 538 +
listeners/lib/Wrench/ConnectionManager.php | 332 +
.../Wrench/Exception/BadRequestException.php | 22 +
.../lib/Wrench/Exception/CloseException.php | 25 +
.../Wrench/Exception/ConnectionException.php | 7 +
listeners/lib/Wrench/Exception/Exception.php | 7 +
.../lib/Wrench/Exception/FrameException.php | 8 +
.../Wrench/Exception/HandshakeException.php | 22 +
.../Exception/InvalidOriginException.php | 25 +
.../lib/Wrench/Exception/PayloadException.php | 8 +
.../Wrench/Exception/RateLimiterException.php | 20 +
.../lib/Wrench/Exception/SocketException.php | 8 +
listeners/lib/Wrench/Frame/Frame.php | 190 +
listeners/lib/Wrench/Frame/HybiFrame.php | 376 +
.../Listener/HandshakeRequestListener.php | 19 +
listeners/lib/Wrench/Listener/Listener.php | 10 +
.../lib/Wrench/Listener/OriginPolicy.php | 76 +
listeners/lib/Wrench/Listener/RateLimiter.php | 230 +
listeners/lib/Wrench/Payload/HybiPayload.php | 22 +
listeners/lib/Wrench/Payload/Payload.php | 217 +
.../lib/Wrench/Payload/PayloadHandler.php | 110 +
.../lib/Wrench/Protocol/Hybi10Protocol.php | 35 +
.../lib/Wrench/Protocol/HybiProtocol.php | 24 +
listeners/lib/Wrench/Protocol/Protocol.php | 816 ++
.../lib/Wrench/Protocol/Rfc6455Protocol.php | 36 +
listeners/lib/Wrench/Resource.php | 12 +
listeners/lib/Wrench/Server.php | 303 +
listeners/lib/Wrench/Socket/ClientSocket.php | 105 +
.../lib/Wrench/Socket/ServerClientSocket.php | 25 +
listeners/lib/Wrench/Socket/ServerSocket.php | 126 +
listeners/lib/Wrench/Socket/Socket.php | 322 +
listeners/lib/Wrench/Socket/UriSocket.php | 118 +
.../Tests/Application/EchoApplicationTest.php | 57 +
.../lib/Wrench/Tests/BasicServerTest.php | 119 +
listeners/lib/Wrench/Tests/ClientTest.php | 173 +
.../Wrench/Tests/ConnectionManagerTest.php | 101 +
listeners/lib/Wrench/Tests/ConnectionTest.php | 386 +
.../Tests/Frame/BaseSubclassFrameTest.php | 29 +
.../lib/Wrench/Tests/Frame/FrameTest.php | 168 +
.../lib/Wrench/Tests/Frame/HybiFrameTest.php | 14 +
.../Wrench/Tests/Listener/ListenerTest.php | 23 +
.../Tests/Listener/OriginPolicyTest.php | 110 +
.../Wrench/Tests/Listener/RateLimiterTest.php | 67 +
.../Wrench/Tests/Payload/HybiPayloadTest.php | 14 +
.../lib/Wrench/Tests/Payload/PayloadTest.php | 140 +
.../Wrench/Tests/Protocol/ProtocolTest.php | 180 +
.../Tests/Protocol/Rfc6455ProtocolTest.php | 14 +
listeners/lib/Wrench/Tests/ServerTest.php | 78 +
.../lib/Wrench/Tests/ServerTestHelper.php | 144 +
.../Wrench/Tests/Socket/ClientSocketTest.php | 167 +
.../Tests/Socket/ServerClientSocketTest.php | 42 +
.../Wrench/Tests/Socket/ServerSocketTest.php | 13 +
.../lib/Wrench/Tests/Socket/SocketTest.php | 47 +
.../lib/Wrench/Tests/Socket/UriSocketTest.php | 56 +
listeners/lib/Wrench/Tests/Test.php | 61 +
listeners/lib/Wrench/Tests/bootstrap.php | 11 +
listeners/lib/Wrench/Tests/server.php | 16 +
listeners/lib/Wrench/Util/Configurable.php | 67 +
listeners/lib/Wrench/Util/Ssl.php | 51 +
listeners/navSyncBroadcasterServer.php | 42 +
package.json | 12 +
public/WHAR_INDEX | 3 +
public/listeners/synclisteners.js | 162 +
public/styleguide/assets/icons.dev.svg | 37 +
public/styleguide/assets/icons.eot | Bin 0 -> 2288 bytes
public/styleguide/assets/icons.svg | 37 +
public/styleguide/assets/icons.ttf | Bin 0 -> 2132 bytes
public/styleguide/assets/icons.woff | Bin 0 -> 2036 bytes
public/styleguide/html/README | 1 +
scripts/README | 6 +
scripts/generateSite.command | 3 +
scripts/startAutoReloadServer.command | 3 +
scripts/startPageFollowServer.command | 3 +
scripts/startWatcher.command | 3 +
source/_data/data.json | 72 +
source/_data/listitems.json | 782 ++
source/_patternlab-files/README | 1 +
source/_patternlab-files/index.mustache | 42 +
.../partials/ishControls.mustache | 44 +
.../partials/patternNav.mustache | 17 +
.../partials/patternPaths.mustache | 3 +
.../partials/viewAllPaths.mustache | 3 +
.../partials/websockets.mustache | 6 +
.../pattern-header-footer/README | 1 +
.../pattern-header-footer/footer.html | 55 +
.../pattern-header-footer/header.html | 17 +
source/_patternlab-files/styleguide.mustache | 70 +
source/_patternlab-files/viewall.mustache | 73 +
.../00-atoms/00-global/00-colors.mustache | 38 +
.../00-atoms/00-global/01-fonts.mustache | 6 +
.../00-atoms/00-global/02-animations.mustache | 3 +
.../00-atoms/00-global/03-visibility.mustache | 11 +
.../00-atoms/01-text/00-headings.mustache | 6 +
.../00-atoms/01-text/01-subheadings.mustache | 6 +
.../01-text/02-headings-with-links.mustache | 6 +
.../00-atoms/01-text/03-paragraph.mustache | 1 +
.../00-atoms/01-text/04-blockquote.mustache | 3 +
.../01-text/05-inline-elements.mustache | 41 +
.../00-atoms/01-text/06-time.mustache | 1 +
.../01-text/07-preformatted-text.mustache | 9 +
.../01-text/08-emphasis-colors.mustache | 4 +
.../_patterns/00-atoms/01-text/09-hr.mustache | 1 +
.../00-atoms/01-text/10-caption.mustache | 1 +
.../00-atoms/02-lists/00-unordered.mustache | 14 +
.../00-atoms/02-lists/01-ordered.mustache | 14 +
.../00-atoms/02-lists/02-definition.mustache | 10 +
.../00-atoms/03-images/00-logo.mustache | 1 +
.../03-images/01-landscape-4x3.mustache | 1 +
.../03-images/02-landscape-16x9.mustache | 1 +
.../00-atoms/03-images/03-square.mustache | 1 +
.../00-atoms/03-images/04-avatar.mustache | 1 +
.../00-atoms/03-images/05-icons.mustache | 12 +
.../03-images/06-loading-icon.mustache | 1 +
.../00-atoms/03-images/07-favicon.mustache | 2 +
.../00-atoms/04-forms/00-text-fields.mustache | 38 +
.../00-atoms/04-forms/01-select-menu.mustache | 12 +
.../00-atoms/04-forms/02-checkbox.mustache | 10 +
.../04-forms/03-radio-buttons.mustache | 10 +
.../04-forms/04-html5-inputs.mustache | 10 +
.../00-atoms/05-buttons/00-buttons.mustache | 4 +
.../00-atoms/06-tables/00-table.mustache | 50 +
.../00-atoms/07-media/00-video.mustache | 6 +
.../00-atoms/07-media/01-audio.mustache | 4 +
.../00-text/00-byline-author-only.mustache | 1 +
.../00-text/01-byline-author-time.mustache | 1 +
.../01-molecules/00-text/02-address.mustache | 11 +
.../00-text/03-heading-group.mustache | 4 +
.../04-blockquote-with-citation.mustache | 4 +
.../00-text/05-intro-text.mustache | 1 +
.../00-text/06-pullquote.mustache | 3 +
.../01-molecules/01-layout/00-one-up.mustache | 7 +
.../01-molecules/01-layout/01-two-up.mustache | 7 +
.../01-layout/02-three-up.mustache | 8 +
.../01-layout/03-four-up.mustache | 9 +
.../02-blocks/00-media-block.mustache | 11 +
.../02-blocks/01-headline-byline.mustache | 6 +
.../02-blocks/02-block-hero.mustache | 10 +
.../03-block-thumb-headline.mustache | 10 +
.../02-blocks/04-headline-only.mustache | 5 +
.../02-blocks/05-inset-block.mustache | 10 +
.../03-media/00-figure-with-caption.mustache | 4 +
.../01-molecules/03-media/_map.mustache | 1 +
.../01-molecules/04-forms/00-search.mustache | 11 +
.../04-forms/01-comment-form.mustache | 20 +
.../04-forms/02-newsletter.mustache | 10 +
.../05-navigation/00-primary-nav.mustache | 8 +
.../05-navigation/01-footer-nav.mustache | 6 +
.../05-navigation/02-breadcrumbs.mustache | 7 +
.../05-navigation/03-pagination.mustache | 9 +
.../05-navigation/04-tabs.mustache | 7 +
.../06-components/00-social-share.mustache | 8 +
.../06-components/01-accordion.mustache | 19 +
.../06-components/02-single-comment.mustache | 9 +
.../02-organisms/00-global/00-header.mustache | 9 +
.../02-organisms/00-global/01-footer.mustache | 7 +
.../01-article/00-article-body.mustache | 26 +
.../02-comments/00-comment-thread.mustache | 12 +
.../03-components/00-carousel.mustache | 10 +
.../04-sections/00-latest-posts.mustache | 11 +
.../04-sections/01-recent-tweets.mustache | 12 +
.../04-sections/02-related-posts.mustache | 11 +
.../03-templates/00-homepage.mustache | 31 +
.../_patterns/03-templates/01-blog.mustache | 17 +
.../03-templates/02-article.mustache | 24 +
source/_patterns/04-pages/00-homepage.json | 132 +
.../_patterns/04-pages/00-homepage.mustache | 37 +
source/_patterns/04-pages/01-blog.json | 84 +
source/_patterns/04-pages/01-blog.mustache | 25 +
source/_patterns/04-pages/02-article.json | 26 +
source/_patterns/04-pages/02-article.mustache | 51 +
source/css/scss/base/_animation.scss | 13 +
source/css/scss/base/_forms.scss | 138 +
source/css/scss/base/_global-classes.scss | 96 +
source/css/scss/base/_headings.scss | 31 +
source/css/scss/base/_links.scss | 10 +
source/css/scss/base/_lists.scss | 19 +
source/css/scss/base/_main.scss | 6 +
source/css/scss/base/_media.scss | 23 +
source/css/scss/base/_tables.scss | 18 +
source/css/scss/base/_text.scss | 26 +
source/css/scss/generic/_mixins.scss | 23 +
source/css/scss/generic/_reset.scss | 17 +
source/css/scss/generic/_variables.scss | 74 +
source/css/scss/objects/_accordion.scss | 33 +
source/css/scss/objects/_ads.scss | 0
source/css/scss/objects/_article.scss | 52 +
source/css/scss/objects/_blocks.scss | 138 +
source/css/scss/objects/_buttons.scss | 39 +
source/css/scss/objects/_carousels.scss | 38 +
source/css/scss/objects/_comments.scss | 29 +
source/css/scss/objects/_footer.scss | 46 +
source/css/scss/objects/_header.scss | 40 +
source/css/scss/objects/_icons.scss | 125 +
source/css/scss/objects/_layout.scss | 288 +
source/css/scss/objects/_lists.scss | 63 +
source/css/scss/objects/_main.scss | 9 +
source/css/scss/objects/_nav.scss | 52 +
source/css/scss/objects/_sections.scss | 7 +
source/css/scss/objects/_tabs.scss | 33 +
source/css/scss/objects/_text.scss | 77 +
source/css/scss/objects/_tooltip.scss | 42 +
source/css/style.css | 1402 +++
source/css/style.scss | 96 +
source/fonts/icons.dev.svg | 103 +
source/fonts/icons.eot | Bin 0 -> 4372 bytes
source/fonts/icons.svg | 103 +
source/fonts/icons.ttf | Bin 0 -> 4216 bytes
source/fonts/icons.woff | Bin 0 -> 6176 bytes
source/images/ajax-loader.gif | Bin 0 -> 673 bytes
source/images/favicon_16x16.jpg | Bin 0 -> 311 bytes
source/images/favicon_32x32.jpg | Bin 0 -> 320 bytes
source/images/fpo_16x9.png | Bin 0 -> 15324 bytes
source/images/fpo_4x3.png | Bin 0 -> 15854 bytes
source/images/fpo_avatar.png | Bin 0 -> 3217 bytes
source/images/fpo_square.png | Bin 0 -> 8694 bytes
source/images/logo.png | Bin 0 -> 1931 bytes
.../sample/landscape-16x9-mountains.jpg | Bin 0 -> 78249 bytes
source/images/sample/thumb-square-fire.jpg | Bin 0 -> 72783 bytes
source/images/sample/thumb-square-gear.jpg | Bin 0 -> 146848 bytes
source/images/sample/thumb-square-ivy.jpg | Bin 0 -> 76319 bytes
source/images/sample/thumb-square-river.jpg | Bin 0 -> 50522 bytes
.../images/sample/thumb-square-yosemite.jpg | Bin 0 -> 84720 bytes
source/images/sample/tout-4x3-climber.jpg | Bin 0 -> 114565 bytes
source/images/sample/tout-4x3-climbers.jpg | Bin 0 -> 85295 bytes
source/images/sample/tout-4x3-stream.jpg | Bin 0 -> 98049 bytes
source/js/fitvids.js | 77 +
source/js/init.js | 26 +
source/js/jquery-2.0.0b2.js | 8690 +++++++++++++++++
source/js/modernizr.js | 4 +
428 files changed, 24946 insertions(+)
create mode 100644 .gitignore
create mode 100644 CHANGELOG
create mode 100644 Gruntfile.js
create mode 100644 README.md
create mode 100644 builder/lib/Mustache/.gitignore
create mode 100644 builder/lib/Mustache/.gitmodules
create mode 100644 builder/lib/Mustache/.jshintrc
create mode 100644 builder/lib/Mustache/.travis.yml
create mode 100644 builder/lib/Mustache/CHANGES
create mode 100644 builder/lib/Mustache/LICENSE
create mode 100644 builder/lib/Mustache/README.md
create mode 100644 builder/lib/Mustache/Rakefile
create mode 100644 builder/lib/Mustache/mustache.js
create mode 100644 builder/lib/Mustache/mustache.js.nuspec
create mode 100644 builder/lib/Mustache/package.json
create mode 100644 builder/lib/Mustache/test/_files/ampersand_escape.js
create mode 100644 builder/lib/Mustache/test/_files/ampersand_escape.mustache
create mode 100644 builder/lib/Mustache/test/_files/ampersand_escape.txt
create mode 100644 builder/lib/Mustache/test/_files/apostrophe.js
create mode 100644 builder/lib/Mustache/test/_files/apostrophe.mustache
create mode 100644 builder/lib/Mustache/test/_files/apostrophe.txt
create mode 100644 builder/lib/Mustache/test/_files/array_of_strings.js
create mode 100644 builder/lib/Mustache/test/_files/array_of_strings.mustache
create mode 100644 builder/lib/Mustache/test/_files/array_of_strings.txt
create mode 100644 builder/lib/Mustache/test/_files/backslashes.js
create mode 100644 builder/lib/Mustache/test/_files/backslashes.mustache
create mode 100644 builder/lib/Mustache/test/_files/backslashes.txt
create mode 100644 builder/lib/Mustache/test/_files/bug_11_eating_whitespace.js
create mode 100644 builder/lib/Mustache/test/_files/bug_11_eating_whitespace.mustache
create mode 100644 builder/lib/Mustache/test/_files/bug_11_eating_whitespace.txt
create mode 100644 builder/lib/Mustache/test/_files/changing_delimiters.js
create mode 100644 builder/lib/Mustache/test/_files/changing_delimiters.mustache
create mode 100644 builder/lib/Mustache/test/_files/changing_delimiters.txt
create mode 100644 builder/lib/Mustache/test/_files/check_falsy.js
create mode 100644 builder/lib/Mustache/test/_files/check_falsy.mustache
create mode 100644 builder/lib/Mustache/test/_files/check_falsy.txt
create mode 100644 builder/lib/Mustache/test/_files/comments.js
create mode 100644 builder/lib/Mustache/test/_files/comments.mustache
create mode 100644 builder/lib/Mustache/test/_files/comments.txt
create mode 100644 builder/lib/Mustache/test/_files/complex.js
create mode 100644 builder/lib/Mustache/test/_files/complex.mustache
create mode 100644 builder/lib/Mustache/test/_files/complex.txt
create mode 100644 builder/lib/Mustache/test/_files/context_lookup.js
create mode 100644 builder/lib/Mustache/test/_files/context_lookup.mustache
create mode 100644 builder/lib/Mustache/test/_files/context_lookup.txt
create mode 100644 builder/lib/Mustache/test/_files/delimiters.js
create mode 100644 builder/lib/Mustache/test/_files/delimiters.mustache
create mode 100644 builder/lib/Mustache/test/_files/delimiters.txt
create mode 100644 builder/lib/Mustache/test/_files/disappearing_whitespace.js
create mode 100644 builder/lib/Mustache/test/_files/disappearing_whitespace.mustache
create mode 100644 builder/lib/Mustache/test/_files/disappearing_whitespace.txt
create mode 100644 builder/lib/Mustache/test/_files/dot_notation.js
create mode 100644 builder/lib/Mustache/test/_files/dot_notation.mustache
create mode 100644 builder/lib/Mustache/test/_files/dot_notation.txt
create mode 100644 builder/lib/Mustache/test/_files/double_render.js
create mode 100644 builder/lib/Mustache/test/_files/double_render.mustache
create mode 100644 builder/lib/Mustache/test/_files/double_render.txt
create mode 100644 builder/lib/Mustache/test/_files/empty_list.js
create mode 100644 builder/lib/Mustache/test/_files/empty_list.mustache
create mode 100644 builder/lib/Mustache/test/_files/empty_list.txt
create mode 100644 builder/lib/Mustache/test/_files/empty_sections.js
create mode 100644 builder/lib/Mustache/test/_files/empty_sections.mustache
create mode 100644 builder/lib/Mustache/test/_files/empty_sections.txt
create mode 100644 builder/lib/Mustache/test/_files/empty_string.js
create mode 100644 builder/lib/Mustache/test/_files/empty_string.mustache
create mode 100644 builder/lib/Mustache/test/_files/empty_string.txt
create mode 100644 builder/lib/Mustache/test/_files/empty_template.js
create mode 100644 builder/lib/Mustache/test/_files/empty_template.mustache
create mode 100644 builder/lib/Mustache/test/_files/empty_template.txt
create mode 100644 builder/lib/Mustache/test/_files/error_not_found.js
create mode 100644 builder/lib/Mustache/test/_files/error_not_found.mustache
create mode 100644 builder/lib/Mustache/test/_files/error_not_found.txt
create mode 100644 builder/lib/Mustache/test/_files/escaped.js
create mode 100644 builder/lib/Mustache/test/_files/escaped.mustache
create mode 100644 builder/lib/Mustache/test/_files/escaped.txt
create mode 100644 builder/lib/Mustache/test/_files/falsy.js
create mode 100644 builder/lib/Mustache/test/_files/falsy.mustache
create mode 100644 builder/lib/Mustache/test/_files/falsy.txt
create mode 100644 builder/lib/Mustache/test/_files/grandparent_context.js
create mode 100644 builder/lib/Mustache/test/_files/grandparent_context.mustache
create mode 100644 builder/lib/Mustache/test/_files/grandparent_context.txt
create mode 100644 builder/lib/Mustache/test/_files/higher_order_sections.js
create mode 100644 builder/lib/Mustache/test/_files/higher_order_sections.mustache
create mode 100644 builder/lib/Mustache/test/_files/higher_order_sections.txt
create mode 100644 builder/lib/Mustache/test/_files/included_tag.js
create mode 100644 builder/lib/Mustache/test/_files/included_tag.mustache
create mode 100644 builder/lib/Mustache/test/_files/included_tag.txt
create mode 100644 builder/lib/Mustache/test/_files/inverted_section.js
create mode 100644 builder/lib/Mustache/test/_files/inverted_section.mustache
create mode 100644 builder/lib/Mustache/test/_files/inverted_section.txt
create mode 100644 builder/lib/Mustache/test/_files/keys_with_questionmarks.js
create mode 100644 builder/lib/Mustache/test/_files/keys_with_questionmarks.mustache
create mode 100644 builder/lib/Mustache/test/_files/keys_with_questionmarks.txt
create mode 100644 builder/lib/Mustache/test/_files/malicious_template.js
create mode 100644 builder/lib/Mustache/test/_files/malicious_template.mustache
create mode 100644 builder/lib/Mustache/test/_files/malicious_template.txt
create mode 100644 builder/lib/Mustache/test/_files/multiline_comment.js
create mode 100644 builder/lib/Mustache/test/_files/multiline_comment.mustache
create mode 100644 builder/lib/Mustache/test/_files/multiline_comment.txt
create mode 100644 builder/lib/Mustache/test/_files/nested_higher_order_sections.js
create mode 100644 builder/lib/Mustache/test/_files/nested_higher_order_sections.mustache
create mode 100644 builder/lib/Mustache/test/_files/nested_higher_order_sections.txt
create mode 100644 builder/lib/Mustache/test/_files/nested_iterating.js
create mode 100644 builder/lib/Mustache/test/_files/nested_iterating.mustache
create mode 100644 builder/lib/Mustache/test/_files/nested_iterating.txt
create mode 100644 builder/lib/Mustache/test/_files/nesting.js
create mode 100644 builder/lib/Mustache/test/_files/nesting.mustache
create mode 100644 builder/lib/Mustache/test/_files/nesting.txt
create mode 100644 builder/lib/Mustache/test/_files/nesting_same_name.js
create mode 100644 builder/lib/Mustache/test/_files/nesting_same_name.mustache
create mode 100644 builder/lib/Mustache/test/_files/nesting_same_name.txt
create mode 100644 builder/lib/Mustache/test/_files/null_string.js
create mode 100644 builder/lib/Mustache/test/_files/null_string.mustache
create mode 100644 builder/lib/Mustache/test/_files/null_string.txt
create mode 100644 builder/lib/Mustache/test/_files/null_view.js
create mode 100644 builder/lib/Mustache/test/_files/null_view.mustache
create mode 100644 builder/lib/Mustache/test/_files/null_view.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_array.js
create mode 100644 builder/lib/Mustache/test/_files/partial_array.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_array.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_array.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials.js
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.js
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_empty.js
create mode 100644 builder/lib/Mustache/test/_files/partial_empty.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_empty.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_empty.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_template.js
create mode 100644 builder/lib/Mustache/test/_files/partial_template.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_template.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_template.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_view.js
create mode 100644 builder/lib/Mustache/test/_files/partial_view.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_view.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_view.txt
create mode 100644 builder/lib/Mustache/test/_files/partial_whitespace.js
create mode 100644 builder/lib/Mustache/test/_files/partial_whitespace.mustache
create mode 100644 builder/lib/Mustache/test/_files/partial_whitespace.partial
create mode 100644 builder/lib/Mustache/test/_files/partial_whitespace.txt
create mode 100644 builder/lib/Mustache/test/_files/recursion_with_same_names.js
create mode 100644 builder/lib/Mustache/test/_files/recursion_with_same_names.mustache
create mode 100644 builder/lib/Mustache/test/_files/recursion_with_same_names.txt
create mode 100644 builder/lib/Mustache/test/_files/reuse_of_enumerables.js
create mode 100644 builder/lib/Mustache/test/_files/reuse_of_enumerables.mustache
create mode 100644 builder/lib/Mustache/test/_files/reuse_of_enumerables.txt
create mode 100644 builder/lib/Mustache/test/_files/section_as_context.js
create mode 100644 builder/lib/Mustache/test/_files/section_as_context.mustache
create mode 100644 builder/lib/Mustache/test/_files/section_as_context.txt
create mode 100644 builder/lib/Mustache/test/_files/simple.js
create mode 100644 builder/lib/Mustache/test/_files/simple.mustache
create mode 100644 builder/lib/Mustache/test/_files/simple.txt
create mode 100644 builder/lib/Mustache/test/_files/string_as_context.js
create mode 100644 builder/lib/Mustache/test/_files/string_as_context.mustache
create mode 100644 builder/lib/Mustache/test/_files/string_as_context.txt
create mode 100644 builder/lib/Mustache/test/_files/two_in_a_row.js
create mode 100644 builder/lib/Mustache/test/_files/two_in_a_row.mustache
create mode 100644 builder/lib/Mustache/test/_files/two_in_a_row.txt
create mode 100644 builder/lib/Mustache/test/_files/two_sections.js
create mode 100644 builder/lib/Mustache/test/_files/two_sections.mustache
create mode 100644 builder/lib/Mustache/test/_files/two_sections.txt
create mode 100644 builder/lib/Mustache/test/_files/unescaped.js
create mode 100644 builder/lib/Mustache/test/_files/unescaped.mustache
create mode 100644 builder/lib/Mustache/test/_files/unescaped.txt
create mode 100644 builder/lib/Mustache/test/_files/whitespace.js
create mode 100644 builder/lib/Mustache/test/_files/whitespace.mustache
create mode 100644 builder/lib/Mustache/test/_files/whitespace.txt
create mode 100644 builder/lib/Mustache/test/context-test.js
create mode 100644 builder/lib/Mustache/test/helper.js
create mode 100644 builder/lib/Mustache/test/mustache-spec-test.js
create mode 100644 builder/lib/Mustache/test/parse-test.js
create mode 100644 builder/lib/Mustache/test/render-test.js
create mode 100644 builder/lib/Mustache/test/scanner-test.js
create mode 100644 builder/lib/Mustache/test/writer-test.js
create mode 100644 builder/lib/Mustache/wrappers/dojo/mustache.js.post
create mode 100644 builder/lib/Mustache/wrappers/dojo/mustache.js.pre
create mode 100644 builder/lib/Mustache/wrappers/jquery/mustache.js.post
create mode 100644 builder/lib/Mustache/wrappers/jquery/mustache.js.pre
create mode 100644 builder/lib/Mustache/wrappers/mootools/mustache.js.post
create mode 100644 builder/lib/Mustache/wrappers/mootools/mustache.js.pre
create mode 100644 builder/lib/Mustache/wrappers/qooxdoo/mustache.js.post
create mode 100644 builder/lib/Mustache/wrappers/qooxdoo/mustache.js.pre
create mode 100644 builder/patternlab.js
create mode 100644 config/config.json
create mode 100644 extras/apache/README
create mode 100644 extras/apache/vhost.txt
create mode 100644 listeners/contentSyncBroadcasterServer.php
create mode 100644 listeners/lib/LICENSE
create mode 100644 listeners/lib/SplClassLoader.php
create mode 100644 listeners/lib/Wrench/Application/Application.php
create mode 100644 listeners/lib/Wrench/Application/contentSyncBroadcasterApplication.php
create mode 100644 listeners/lib/Wrench/Application/navSyncBroadcasterApplication.php
create mode 100644 listeners/lib/Wrench/BasicServer.php
create mode 100644 listeners/lib/Wrench/Client.php
create mode 100644 listeners/lib/Wrench/Connection.php
create mode 100644 listeners/lib/Wrench/ConnectionManager.php
create mode 100644 listeners/lib/Wrench/Exception/BadRequestException.php
create mode 100644 listeners/lib/Wrench/Exception/CloseException.php
create mode 100644 listeners/lib/Wrench/Exception/ConnectionException.php
create mode 100644 listeners/lib/Wrench/Exception/Exception.php
create mode 100644 listeners/lib/Wrench/Exception/FrameException.php
create mode 100644 listeners/lib/Wrench/Exception/HandshakeException.php
create mode 100644 listeners/lib/Wrench/Exception/InvalidOriginException.php
create mode 100644 listeners/lib/Wrench/Exception/PayloadException.php
create mode 100644 listeners/lib/Wrench/Exception/RateLimiterException.php
create mode 100644 listeners/lib/Wrench/Exception/SocketException.php
create mode 100644 listeners/lib/Wrench/Frame/Frame.php
create mode 100644 listeners/lib/Wrench/Frame/HybiFrame.php
create mode 100644 listeners/lib/Wrench/Listener/HandshakeRequestListener.php
create mode 100644 listeners/lib/Wrench/Listener/Listener.php
create mode 100644 listeners/lib/Wrench/Listener/OriginPolicy.php
create mode 100644 listeners/lib/Wrench/Listener/RateLimiter.php
create mode 100644 listeners/lib/Wrench/Payload/HybiPayload.php
create mode 100644 listeners/lib/Wrench/Payload/Payload.php
create mode 100644 listeners/lib/Wrench/Payload/PayloadHandler.php
create mode 100644 listeners/lib/Wrench/Protocol/Hybi10Protocol.php
create mode 100644 listeners/lib/Wrench/Protocol/HybiProtocol.php
create mode 100644 listeners/lib/Wrench/Protocol/Protocol.php
create mode 100644 listeners/lib/Wrench/Protocol/Rfc6455Protocol.php
create mode 100644 listeners/lib/Wrench/Resource.php
create mode 100644 listeners/lib/Wrench/Server.php
create mode 100644 listeners/lib/Wrench/Socket/ClientSocket.php
create mode 100644 listeners/lib/Wrench/Socket/ServerClientSocket.php
create mode 100644 listeners/lib/Wrench/Socket/ServerSocket.php
create mode 100644 listeners/lib/Wrench/Socket/Socket.php
create mode 100644 listeners/lib/Wrench/Socket/UriSocket.php
create mode 100644 listeners/lib/Wrench/Tests/Application/EchoApplicationTest.php
create mode 100644 listeners/lib/Wrench/Tests/BasicServerTest.php
create mode 100644 listeners/lib/Wrench/Tests/ClientTest.php
create mode 100644 listeners/lib/Wrench/Tests/ConnectionManagerTest.php
create mode 100644 listeners/lib/Wrench/Tests/ConnectionTest.php
create mode 100644 listeners/lib/Wrench/Tests/Frame/BaseSubclassFrameTest.php
create mode 100644 listeners/lib/Wrench/Tests/Frame/FrameTest.php
create mode 100644 listeners/lib/Wrench/Tests/Frame/HybiFrameTest.php
create mode 100644 listeners/lib/Wrench/Tests/Listener/ListenerTest.php
create mode 100644 listeners/lib/Wrench/Tests/Listener/OriginPolicyTest.php
create mode 100644 listeners/lib/Wrench/Tests/Listener/RateLimiterTest.php
create mode 100644 listeners/lib/Wrench/Tests/Payload/HybiPayloadTest.php
create mode 100644 listeners/lib/Wrench/Tests/Payload/PayloadTest.php
create mode 100644 listeners/lib/Wrench/Tests/Protocol/ProtocolTest.php
create mode 100644 listeners/lib/Wrench/Tests/Protocol/Rfc6455ProtocolTest.php
create mode 100644 listeners/lib/Wrench/Tests/ServerTest.php
create mode 100644 listeners/lib/Wrench/Tests/ServerTestHelper.php
create mode 100644 listeners/lib/Wrench/Tests/Socket/ClientSocketTest.php
create mode 100644 listeners/lib/Wrench/Tests/Socket/ServerClientSocketTest.php
create mode 100644 listeners/lib/Wrench/Tests/Socket/ServerSocketTest.php
create mode 100644 listeners/lib/Wrench/Tests/Socket/SocketTest.php
create mode 100644 listeners/lib/Wrench/Tests/Socket/UriSocketTest.php
create mode 100644 listeners/lib/Wrench/Tests/Test.php
create mode 100644 listeners/lib/Wrench/Tests/bootstrap.php
create mode 100644 listeners/lib/Wrench/Tests/server.php
create mode 100644 listeners/lib/Wrench/Util/Configurable.php
create mode 100644 listeners/lib/Wrench/Util/Ssl.php
create mode 100644 listeners/navSyncBroadcasterServer.php
create mode 100644 package.json
create mode 100644 public/WHAR_INDEX
create mode 100644 public/listeners/synclisteners.js
create mode 100644 public/styleguide/assets/icons.dev.svg
create mode 100644 public/styleguide/assets/icons.eot
create mode 100644 public/styleguide/assets/icons.svg
create mode 100644 public/styleguide/assets/icons.ttf
create mode 100644 public/styleguide/assets/icons.woff
create mode 100644 public/styleguide/html/README
create mode 100644 scripts/README
create mode 100644 scripts/generateSite.command
create mode 100644 scripts/startAutoReloadServer.command
create mode 100644 scripts/startPageFollowServer.command
create mode 100644 scripts/startWatcher.command
create mode 100644 source/_data/data.json
create mode 100644 source/_data/listitems.json
create mode 100644 source/_patternlab-files/README
create mode 100644 source/_patternlab-files/index.mustache
create mode 100644 source/_patternlab-files/partials/ishControls.mustache
create mode 100644 source/_patternlab-files/partials/patternNav.mustache
create mode 100644 source/_patternlab-files/partials/patternPaths.mustache
create mode 100644 source/_patternlab-files/partials/viewAllPaths.mustache
create mode 100644 source/_patternlab-files/partials/websockets.mustache
create mode 100644 source/_patternlab-files/pattern-header-footer/README
create mode 100644 source/_patternlab-files/pattern-header-footer/footer.html
create mode 100644 source/_patternlab-files/pattern-header-footer/header.html
create mode 100644 source/_patternlab-files/styleguide.mustache
create mode 100644 source/_patternlab-files/viewall.mustache
create mode 100644 source/_patterns/00-atoms/00-global/00-colors.mustache
create mode 100644 source/_patterns/00-atoms/00-global/01-fonts.mustache
create mode 100644 source/_patterns/00-atoms/00-global/02-animations.mustache
create mode 100644 source/_patterns/00-atoms/00-global/03-visibility.mustache
create mode 100644 source/_patterns/00-atoms/01-text/00-headings.mustache
create mode 100644 source/_patterns/00-atoms/01-text/01-subheadings.mustache
create mode 100644 source/_patterns/00-atoms/01-text/02-headings-with-links.mustache
create mode 100644 source/_patterns/00-atoms/01-text/03-paragraph.mustache
create mode 100644 source/_patterns/00-atoms/01-text/04-blockquote.mustache
create mode 100644 source/_patterns/00-atoms/01-text/05-inline-elements.mustache
create mode 100644 source/_patterns/00-atoms/01-text/06-time.mustache
create mode 100644 source/_patterns/00-atoms/01-text/07-preformatted-text.mustache
create mode 100644 source/_patterns/00-atoms/01-text/08-emphasis-colors.mustache
create mode 100644 source/_patterns/00-atoms/01-text/09-hr.mustache
create mode 100644 source/_patterns/00-atoms/01-text/10-caption.mustache
create mode 100644 source/_patterns/00-atoms/02-lists/00-unordered.mustache
create mode 100644 source/_patterns/00-atoms/02-lists/01-ordered.mustache
create mode 100644 source/_patterns/00-atoms/02-lists/02-definition.mustache
create mode 100644 source/_patterns/00-atoms/03-images/00-logo.mustache
create mode 100644 source/_patterns/00-atoms/03-images/01-landscape-4x3.mustache
create mode 100644 source/_patterns/00-atoms/03-images/02-landscape-16x9.mustache
create mode 100644 source/_patterns/00-atoms/03-images/03-square.mustache
create mode 100644 source/_patterns/00-atoms/03-images/04-avatar.mustache
create mode 100644 source/_patterns/00-atoms/03-images/05-icons.mustache
create mode 100644 source/_patterns/00-atoms/03-images/06-loading-icon.mustache
create mode 100644 source/_patterns/00-atoms/03-images/07-favicon.mustache
create mode 100644 source/_patterns/00-atoms/04-forms/00-text-fields.mustache
create mode 100644 source/_patterns/00-atoms/04-forms/01-select-menu.mustache
create mode 100644 source/_patterns/00-atoms/04-forms/02-checkbox.mustache
create mode 100644 source/_patterns/00-atoms/04-forms/03-radio-buttons.mustache
create mode 100644 source/_patterns/00-atoms/04-forms/04-html5-inputs.mustache
create mode 100644 source/_patterns/00-atoms/05-buttons/00-buttons.mustache
create mode 100644 source/_patterns/00-atoms/06-tables/00-table.mustache
create mode 100644 source/_patterns/00-atoms/07-media/00-video.mustache
create mode 100644 source/_patterns/00-atoms/07-media/01-audio.mustache
create mode 100644 source/_patterns/01-molecules/00-text/00-byline-author-only.mustache
create mode 100644 source/_patterns/01-molecules/00-text/01-byline-author-time.mustache
create mode 100644 source/_patterns/01-molecules/00-text/02-address.mustache
create mode 100644 source/_patterns/01-molecules/00-text/03-heading-group.mustache
create mode 100644 source/_patterns/01-molecules/00-text/04-blockquote-with-citation.mustache
create mode 100644 source/_patterns/01-molecules/00-text/05-intro-text.mustache
create mode 100644 source/_patterns/01-molecules/00-text/06-pullquote.mustache
create mode 100644 source/_patterns/01-molecules/01-layout/00-one-up.mustache
create mode 100644 source/_patterns/01-molecules/01-layout/01-two-up.mustache
create mode 100644 source/_patterns/01-molecules/01-layout/02-three-up.mustache
create mode 100644 source/_patterns/01-molecules/01-layout/03-four-up.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/00-media-block.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/01-headline-byline.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/02-block-hero.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/03-block-thumb-headline.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/04-headline-only.mustache
create mode 100644 source/_patterns/01-molecules/02-blocks/05-inset-block.mustache
create mode 100644 source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache
create mode 100644 source/_patterns/01-molecules/03-media/_map.mustache
create mode 100644 source/_patterns/01-molecules/04-forms/00-search.mustache
create mode 100644 source/_patterns/01-molecules/04-forms/01-comment-form.mustache
create mode 100644 source/_patterns/01-molecules/04-forms/02-newsletter.mustache
create mode 100644 source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache
create mode 100644 source/_patterns/01-molecules/05-navigation/01-footer-nav.mustache
create mode 100644 source/_patterns/01-molecules/05-navigation/02-breadcrumbs.mustache
create mode 100644 source/_patterns/01-molecules/05-navigation/03-pagination.mustache
create mode 100644 source/_patterns/01-molecules/05-navigation/04-tabs.mustache
create mode 100644 source/_patterns/01-molecules/06-components/00-social-share.mustache
create mode 100644 source/_patterns/01-molecules/06-components/01-accordion.mustache
create mode 100644 source/_patterns/01-molecules/06-components/02-single-comment.mustache
create mode 100644 source/_patterns/02-organisms/00-global/00-header.mustache
create mode 100644 source/_patterns/02-organisms/00-global/01-footer.mustache
create mode 100644 source/_patterns/02-organisms/01-article/00-article-body.mustache
create mode 100644 source/_patterns/02-organisms/02-comments/00-comment-thread.mustache
create mode 100644 source/_patterns/02-organisms/03-components/00-carousel.mustache
create mode 100644 source/_patterns/02-organisms/04-sections/00-latest-posts.mustache
create mode 100644 source/_patterns/02-organisms/04-sections/01-recent-tweets.mustache
create mode 100644 source/_patterns/02-organisms/04-sections/02-related-posts.mustache
create mode 100644 source/_patterns/03-templates/00-homepage.mustache
create mode 100644 source/_patterns/03-templates/01-blog.mustache
create mode 100644 source/_patterns/03-templates/02-article.mustache
create mode 100644 source/_patterns/04-pages/00-homepage.json
create mode 100644 source/_patterns/04-pages/00-homepage.mustache
create mode 100644 source/_patterns/04-pages/01-blog.json
create mode 100644 source/_patterns/04-pages/01-blog.mustache
create mode 100644 source/_patterns/04-pages/02-article.json
create mode 100644 source/_patterns/04-pages/02-article.mustache
create mode 100644 source/css/scss/base/_animation.scss
create mode 100644 source/css/scss/base/_forms.scss
create mode 100644 source/css/scss/base/_global-classes.scss
create mode 100644 source/css/scss/base/_headings.scss
create mode 100644 source/css/scss/base/_links.scss
create mode 100644 source/css/scss/base/_lists.scss
create mode 100644 source/css/scss/base/_main.scss
create mode 100644 source/css/scss/base/_media.scss
create mode 100644 source/css/scss/base/_tables.scss
create mode 100644 source/css/scss/base/_text.scss
create mode 100644 source/css/scss/generic/_mixins.scss
create mode 100644 source/css/scss/generic/_reset.scss
create mode 100644 source/css/scss/generic/_variables.scss
create mode 100644 source/css/scss/objects/_accordion.scss
create mode 100644 source/css/scss/objects/_ads.scss
create mode 100644 source/css/scss/objects/_article.scss
create mode 100644 source/css/scss/objects/_blocks.scss
create mode 100644 source/css/scss/objects/_buttons.scss
create mode 100644 source/css/scss/objects/_carousels.scss
create mode 100644 source/css/scss/objects/_comments.scss
create mode 100644 source/css/scss/objects/_footer.scss
create mode 100644 source/css/scss/objects/_header.scss
create mode 100644 source/css/scss/objects/_icons.scss
create mode 100644 source/css/scss/objects/_layout.scss
create mode 100644 source/css/scss/objects/_lists.scss
create mode 100644 source/css/scss/objects/_main.scss
create mode 100644 source/css/scss/objects/_nav.scss
create mode 100644 source/css/scss/objects/_sections.scss
create mode 100644 source/css/scss/objects/_tabs.scss
create mode 100644 source/css/scss/objects/_text.scss
create mode 100644 source/css/scss/objects/_tooltip.scss
create mode 100644 source/css/style.css
create mode 100644 source/css/style.scss
create mode 100644 source/fonts/icons.dev.svg
create mode 100644 source/fonts/icons.eot
create mode 100644 source/fonts/icons.svg
create mode 100644 source/fonts/icons.ttf
create mode 100644 source/fonts/icons.woff
create mode 100644 source/images/ajax-loader.gif
create mode 100644 source/images/favicon_16x16.jpg
create mode 100644 source/images/favicon_32x32.jpg
create mode 100644 source/images/fpo_16x9.png
create mode 100644 source/images/fpo_4x3.png
create mode 100644 source/images/fpo_avatar.png
create mode 100644 source/images/fpo_square.png
create mode 100644 source/images/logo.png
create mode 100644 source/images/sample/landscape-16x9-mountains.jpg
create mode 100644 source/images/sample/thumb-square-fire.jpg
create mode 100644 source/images/sample/thumb-square-gear.jpg
create mode 100644 source/images/sample/thumb-square-ivy.jpg
create mode 100644 source/images/sample/thumb-square-river.jpg
create mode 100644 source/images/sample/thumb-square-yosemite.jpg
create mode 100644 source/images/sample/tout-4x3-climber.jpg
create mode 100644 source/images/sample/tout-4x3-climbers.jpg
create mode 100644 source/images/sample/tout-4x3-stream.jpg
create mode 100644 source/js/fitvids.js
create mode 100644 source/js/init.js
create mode 100644 source/js/jquery-2.0.0b2.js
create mode 100644 source/js/modernizr.js
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..ad594f1f1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,21 @@
+node_modules/
+.DS_Store
+public/index.html
+public/styleguide.html
+public/styleguide/html/styleguide.html
+public/css/*
+public/fonts/*
+public/js/*
+public/images/*
+public/patterns/*
+public/styleguide/css/*
+public/styleguide/js/*
+config.ini
+latest-change.txt
+/public/styleguide/js/styleguide-ck.js
+/public/listeners/synclisteners-ck.js
+/public/styleguide/js/data-saver-ck.js
+/public/styleguide/js/url-handler-ck.js
+patternlab.json
+.sass-cache/*
+/sass-cache
\ No newline at end of file
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 000000000..9c0effa10
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,13 @@
+THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
+
+PL-node-v0.0.3
+ - FIX: Install documentation was incomplete, should not have assumed grunt
+ - FIX: Remove SASS/SCSS dependency which was causing clean installs from failing
+
+PL-node-v0.0.2
+ - FIX: Sub Nav Items now strip hyphens and are styled like patternlab-php.
+ - FIX: Exclude patterns by using an underscore
+ - FIX: Grunt watching styleguide scss
+
+PL-node-v0.0.1
+ - Minimum Viable Product! At this point, I feel you could use Pattern Lab Node to build a atomic design-drive website.
\ No newline at end of file
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 000000000..652589a2c
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,68 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ sass: {
+ build: {
+ options: {
+ style: 'expanded',
+ precision: 8
+ },
+ files: {
+ './source/css/style.css': './source/css/style.scss',
+ './public/styleguide/css/static.css': './public/styleguide/css/static.scss',
+ './public/styleguide/css/styleguide.css': './public/styleguide/css/styleguide.scss'
+ }
+ }
+ },
+ copy: {
+ main: {
+ files: [
+ { expand: true, cwd: './source/js/', src: '*', dest: './public/js/'},
+ { expand: true, cwd: './source/css/', src: 'style.css', dest: './public/css/' },
+ { expand: true, cwd: './source/images/', src: '*', dest: './public/images/' },
+ { expand: true, cwd: './source/images/sample/', src: '*', dest: './public/images/sample/'},
+ { expand: true, cwd: './source/fonts/', src: '*', dest: './public/fonts/'}
+ ]
+ }
+ },
+ jshint: {
+ options: {
+ "curly": true,
+ "eqnull": true,
+ "eqeqeq": true,
+ "undef": true,
+ "forin": true,
+ //"unused": true,
+ "node": true
+ },
+ patternlab: ['Gruntfile.js', './builder/lib/patternlab.js']
+ },
+ watch: {
+ // scss: { //scss can be watched if you like
+ // files: ['source/css/**/*.scss', 'public/styleguide/css/*.scss'],
+ // tasks: ['default']
+ // },
+ mustache: {
+ files: ['source/_patterns/**/*.mustache'],
+ tasks: ['default']
+ },
+ data: {
+ files: ['source/_patterns/**/*.json'],
+ tasks: ['default']
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-contrib-sass');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+
+ //load the patternlab task
+ grunt.task.loadTasks('./builder/');
+
+ //if you choose to use scss, or any preprocessor, you can add it here
+ grunt.registerTask('default', ['patternlab', /*'sass',*/ 'copy']);
+};
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..05d36bf48
--- /dev/null
+++ b/README.md
@@ -0,0 +1,78 @@
+## About the Node Version of Pattern Lab
+
+The Node version of Pattern Lab is, at its core, a static site generator. It combines platform-agnostic assets, like the [Mustache](http://mustache.github.io/)-based patterns and the JavaScript-based viewer, with a Node-based "builder" that transforms and dynamically builds the Pattern Lab site. By making it a static site generator, the Node version of Pattern Lab strongly separates patterns, data, and presentation from build logic. The Node version is a work in progress, the [PHP version](https://github.com/pattern-lab/patternlab-php) should be seen as a reference for other developers to improve upon as they build their own Pattern Lab Builders in their language of choice.
+
+## Under Active Development
+
+The Node version of Pattern Lab is under active development by [@bmuenzenmeyer](https://twitter.com/bmuenzenmeyer) and (hopefully) [@Wiscow](https://twitter.com/Wiscow). Contributions welcome. We both have kids under 2 years of age, so patience and coffee is requested :D
+
+### Getting Started
+
+To run patternlab-node, just do the following from the command line at the root of patternlab-node:
+
+1. `npm install`
+2. `npm install -g grunt-cli`
+3. `grunt`
+
+This creates all patterns, the styleguide, and the patternlab site. `patternlab.json` is a file created for debugging purposes. It tells you all the secrets in tidy json.
+
+To have patternlab-node watch for changes to either a mustache template, data, or stylesheets, run `grunt watch`. The `Gruntfile` governs what is watched. It should be easy to add scss or whatever preprocessor you fancy.
+
+#### Watching Progress
+
+Patternlab Node has reached [minimum viable product](http://en.wikipedia.org/wiki/Minimum_viable_product) status. The main branch will always have the most up to date version of patternlab-node. Watch the dev branch for what it coming next!
+
+#### Roadmap
+* Full Patternlab site support. (This is the uber cool navigation found at [demo.pattern-lab.info](http://demo.pattern-lab.info)).
+* More Documentation
+* Tests
+
+**THE FOLLOWING IS FROM THE PATTERNLAB-PHP PROJECT. A LOT STILL APPLIES TO PATTERNLAB-NODE, BUT IT HAS NOT BEEN ADAPTED YET. USE AT YOUR OWN PERIL**
+
+
+===
+
+## Demo
+
+You can play with a demo of the front-end of the PHP version of Pattern Lab at [demo.pattern-lab.info](http://demo.pattern-lab.info).
+
+## Getting Started
+
+The PHP version of Pattern Lab should be relatively easy for anyone to get up and running.
+
+* [Requirements](https://github.com/pattern-lab/patternlab-php/wiki/Requirements)
+* [Installing the PHP Version of Pattern Lab](https://github.com/pattern-lab/patternlab-php/wiki/Installing-the-PHP-Version-of-Pattern-Lab)
+* [Generating the Pattern Lab Website for the First Time](https://github.com/pattern-lab/patternlab-php/wiki/Generating-the-Pattern-Lab-Website-for-the-First-Time)
+* [Editing the Pattern Lab Website Source Files](https://github.com/pattern-lab/patternlab-php/wiki/Editing-the-Pattern-Lab-Website-Source-Files)
+* [Using the Command-line Options](https://github.com/pattern-lab/patternlab-php/wiki/Using-the-Command-line-Options)
+
+## Working with Patterns
+
+Patterns are the core element of Pattern Lab. Understanding how they work is the key to getting the most out of the system. Patterns use [Mustache](http://mustache.github.io/) so please read [Mustache's docs](http://mustache.github.io/mustache.5.html) as well.
+
+* [How Patterns Are Organized](https://github.com/pattern-lab/patternlab-php/wiki/How-Patterns-Are-Organized)
+* [Adding New Patterns](https://github.com/pattern-lab/patternlab-php/wiki/Adding-New-Patterns)
+* [Reorganizing Patterns](https://github.com/pattern-lab/patternlab-php/wiki/Reorganizing-Patterns)
+* [Converting Old Patterns](https://github.com/pattern-lab/patternlab-php/wiki/Converting-Old-Patterns)
+* ["Hiding" Patterns in the Navigation](https://github.com/pattern-lab/patternlab-php/wiki/Hiding-Patterns-in-the-Navigation)
+* [Including One Pattern Within Another via Partials](https://github.com/pattern-lab/patternlab-php/wiki/Including-One-Pattern-Within-Another)
+* [Linking Directly to a Pattern](https://github.com/pattern-lab/patternlab-php/wiki/Linking-Directly-to-a-Pattern)
+* [Managing Assets for a Pattern: JavaScript, images, CSS, etc.](https://github.com/pattern-lab/patternlab-php/wiki/Managing-Assets-for-a-Pattern)
+* [Modifying the Standard Header & Footer for Patterns](https://github.com/pattern-lab/patternlab-php/wiki/Modifying-the-Standard-Header-&-Footer-for-Patterns)
+
+## Creating & Working With Dynamic Data for a Pattern
+
+The PHP version of Pattern Lab utilizes Mustache as the template language for patterns. In addition to allowing for the [inclusion of one pattern within another](https://github.com/pattern-lab/patternlab-php/wiki/Including-One-Pattern-Within-Another) it also gives pattern developers the ability to include variables. This means that attributes like image sources can be centralized in one file for easy modification across one or more patterns. The PHP version of Pattern Lab uses a JSON file, `source/_data/data.json`, to centralize many of these attributes.
+
+* [Introduction to JSON & Mustache Variables](http://github.com/pattern-lab/patternlab-php/wiki/Introduction-to-JSON-&-Mustache-Variables)
+* [Overriding the Central `data.json` Values with Pattern-specific Values](https://github.com/pattern-lab/patternlab-php/wiki/Overriding-the-Central-%60data.json%60-Values-with-Pattern-specific-Values)
+* [Linking to Patterns with Pattern Lab's Default `link` Variable](https://github.com/pattern-lab/patternlab-php/wiki/Linking-to-Patterns-with-Pattern-Lab's-Default-%60link%60-Variable)
+* [Creating Lists with Pattern Lab's Default `listItems` Variable](https://github.com/pattern-lab/patternlab-php/wiki/Creating-Lists-with-Pattern-Lab's-Default-%60listItems%60-Variable)
+
+## Using Pattern Lab's Advanced Features
+
+By default, the Pattern Lab assets can be manually generated and the Pattern Lab site manually refreshed but who wants to waste time doing that? Here are some ways that the PHP version of Pattern Lab can make your development workflow a little smoother:
+
+* [Watching for Changes and Auto-Regenerating Patterns](https://github.com/pattern-lab/patternlab-php/wiki/Watching-for-Changes-and-Auto-Regenerating-Patterns)
+* [Auto-Reloading the Browser Window When Changes Are Made](https://github.com/pattern-lab/patternlab-php/wiki/Auto-Reloading-the-Browser-Window-When-Changes-Are-Made)
+* [Multi-browser & Multi-device Testing with Page Follow](https://github.com/pattern-lab/patternlab-php/wiki/Multi-browser-&-Multi-device-Testing-with-Page-Follow)
diff --git a/builder/lib/Mustache/.gitignore b/builder/lib/Mustache/.gitignore
new file mode 100644
index 000000000..90007769a
--- /dev/null
+++ b/builder/lib/Mustache/.gitignore
@@ -0,0 +1,10 @@
+.DS_Store
+.rvmrc
+node_modules
+runner.js
+jquery.mustache.js
+qooxdoo.mustache.js
+dojox
+yui3
+requirejs.mustache.js
+
diff --git a/builder/lib/Mustache/.gitmodules b/builder/lib/Mustache/.gitmodules
new file mode 100644
index 000000000..9e2fdf850
--- /dev/null
+++ b/builder/lib/Mustache/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "test/spec"]
+ path = test/spec
+ url = https://github.com/mustache/spec
diff --git a/builder/lib/Mustache/.jshintrc b/builder/lib/Mustache/.jshintrc
new file mode 100644
index 000000000..28dff7105
--- /dev/null
+++ b/builder/lib/Mustache/.jshintrc
@@ -0,0 +1,5 @@
+{
+ "eqnull": true,
+ "evil": true
+}
+
diff --git a/builder/lib/Mustache/.travis.yml b/builder/lib/Mustache/.travis.yml
new file mode 100644
index 000000000..3d839b0ef
--- /dev/null
+++ b/builder/lib/Mustache/.travis.yml
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.6
+
diff --git a/builder/lib/Mustache/CHANGES b/builder/lib/Mustache/CHANGES
new file mode 100644
index 000000000..ad80e95f4
--- /dev/null
+++ b/builder/lib/Mustache/CHANGES
@@ -0,0 +1,43 @@
+= HEAD
+
+ * Don't require the original template to be passed to the rendering function
+ when using compiled templates. This is still required when using higher-order
+ functions in order to be able to extract the portion of the template
+ that was contained by that section. Fixes #262.
+ * Performance improvements.
+
+= 0.7.2 / 27 Dec 2012
+
+ * Fixed a rendering bug (#274) when using nested higher-order sections.
+ * Better error reporting on failed parse.
+ * 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/builder/lib/Mustache/LICENSE b/builder/lib/Mustache/LICENSE
new file mode 100644
index 000000000..6626848b3
--- /dev/null
+++ b/builder/lib/Mustache/LICENSE
@@ -0,0 +1,10 @@
+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/builder/lib/Mustache/README.md b/builder/lib/Mustache/README.md
new file mode 100644
index 000000000..95c92788b
--- /dev/null
+++ b/builder/lib/Mustache/README.md
@@ -0,0 +1,405 @@
+# 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 yui3
+ $ rake qooxdoo
+
+## Testing
+
+The mustache.js test suite uses the [mocha](http://visionmedia.github.com/mocha/) testing framework. In order to run the tests you'll need to install [node](http://nodejs.org/). Once that's done you can install mocha using [npm](http://npmjs.org/).
+
+ $ npm install -g mocha
+
+You also need to install the sub module containing [Mustache specifications](http://github.com/mustache/spec) in the project root.
+
+ $ git submodule init
+ $ git submodule update
+
+Then run the tests.
+
+ $ mocha test
+
+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 mocha 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/builder/lib/Mustache/Rakefile b/builder/lib/Mustache/Rakefile
new file mode 100644
index 000000000..bc3217586
--- /dev/null
+++ b/builder/lib/Mustache/Rakefile
@@ -0,0 +1,68 @@
+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/builder/lib/Mustache/mustache.js b/builder/lib/Mustache/mustache.js
new file mode 100644
index 000000000..bee26f965
--- /dev/null
+++ b/builder/lib/Mustache/mustache.js
@@ -0,0 +1,536 @@
+/*!
+ * 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) {
+ factory(exports); // CommonJS
+ } else {
+ var mustache = {};
+ factory(mustache);
+ if (typeof define === "function" && define.amd) {
+ define(mustache); // AMD
+ } else {
+ root.Mustache = mustache; //
diff --git a/builder/lib/Mustache/test/_files/backslashes.txt b/builder/lib/Mustache/test/_files/backslashes.txt
new file mode 100644
index 000000000..038dd37e4
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/backslashes.txt
@@ -0,0 +1,7 @@
+* \abc
+* \abc
+* \abc
+
diff --git a/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.js b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.js
new file mode 100644
index 000000000..e41ccd15d
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.js
@@ -0,0 +1,3 @@
+({
+ tag: "yo"
+})
diff --git a/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.mustache b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.mustache
new file mode 100644
index 000000000..8d5cd921a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.mustache
@@ -0,0 +1 @@
+{{tag}} foo
diff --git a/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.txt b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.txt
new file mode 100644
index 000000000..f5bbc85ce
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/bug_11_eating_whitespace.txt
@@ -0,0 +1 @@
+yo foo
diff --git a/builder/lib/Mustache/test/_files/changing_delimiters.js b/builder/lib/Mustache/test/_files/changing_delimiters.js
new file mode 100644
index 000000000..b808f4c8b
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/changing_delimiters.js
@@ -0,0 +1,4 @@
+({
+ "foo": "foooooooooooooo",
+ "bar": "bar!"
+})
diff --git a/builder/lib/Mustache/test/_files/changing_delimiters.mustache b/builder/lib/Mustache/test/_files/changing_delimiters.mustache
new file mode 100644
index 000000000..0cd044c93
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/changing_delimiters.mustache
@@ -0,0 +1 @@
+{{=<% %>=}}<% foo %> {{foo}} <%{bar}%> {{{bar}}}
diff --git a/builder/lib/Mustache/test/_files/changing_delimiters.txt b/builder/lib/Mustache/test/_files/changing_delimiters.txt
new file mode 100644
index 000000000..1b1510dab
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/changing_delimiters.txt
@@ -0,0 +1 @@
+foooooooooooooo {{foo}} bar! {{{bar}}}
diff --git a/builder/lib/Mustache/test/_files/check_falsy.js b/builder/lib/Mustache/test/_files/check_falsy.js
new file mode 100644
index 000000000..5a599cab7
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/check_falsy.js
@@ -0,0 +1,7 @@
+({
+ number: function(text, render) {
+ return function(text, render) {
+ return +render(text);
+ }
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/check_falsy.mustache b/builder/lib/Mustache/test/_files/check_falsy.mustache
new file mode 100644
index 000000000..30e2547f4
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/check_falsy.mustache
@@ -0,0 +1 @@
+
{{#number}}0{{/number}}
diff --git a/builder/lib/Mustache/test/_files/check_falsy.txt b/builder/lib/Mustache/test/_files/check_falsy.txt
new file mode 100644
index 000000000..3bb2f51f6
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/check_falsy.txt
@@ -0,0 +1 @@
+
0
diff --git a/builder/lib/Mustache/test/_files/comments.js b/builder/lib/Mustache/test/_files/comments.js
new file mode 100644
index 000000000..f20b8b11c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/comments.js
@@ -0,0 +1,5 @@
+({
+ title: function () {
+ return "A Comedy of Errors";
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/comments.mustache b/builder/lib/Mustache/test/_files/comments.mustache
new file mode 100644
index 000000000..503680186
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/comments.mustache
@@ -0,0 +1 @@
+
{{title}}{{! just something interesting... or not... }}
diff --git a/builder/lib/Mustache/test/_files/comments.txt b/builder/lib/Mustache/test/_files/comments.txt
new file mode 100644
index 000000000..0133517bb
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/comments.txt
@@ -0,0 +1 @@
+
diff --git a/builder/lib/Mustache/test/_files/dot_notation.txt b/builder/lib/Mustache/test/_files/dot_notation.txt
new file mode 100644
index 000000000..08afa0529
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/dot_notation.txt
@@ -0,0 +1,9 @@
+
+
A Book
+
Authors:
John Power
Jamie Walsh
+
Price: $200 USD In Stock
+
VAT: $40
+
+
Test truthy false values:
+
Zero: 0
+
False: false
diff --git a/builder/lib/Mustache/test/_files/double_render.js b/builder/lib/Mustache/test/_files/double_render.js
new file mode 100644
index 000000000..28acb2c1a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/double_render.js
@@ -0,0 +1,5 @@
+({
+ foo: true,
+ bar: "{{win}}",
+ win: "FAIL"
+})
diff --git a/builder/lib/Mustache/test/_files/double_render.mustache b/builder/lib/Mustache/test/_files/double_render.mustache
new file mode 100644
index 000000000..4500fd76c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/double_render.mustache
@@ -0,0 +1 @@
+{{#foo}}{{bar}}{{/foo}}
diff --git a/builder/lib/Mustache/test/_files/double_render.txt b/builder/lib/Mustache/test/_files/double_render.txt
new file mode 100644
index 000000000..b6e652d05
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/double_render.txt
@@ -0,0 +1 @@
+{{win}}
diff --git a/builder/lib/Mustache/test/_files/empty_list.js b/builder/lib/Mustache/test/_files/empty_list.js
new file mode 100644
index 000000000..c0e115942
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_list.js
@@ -0,0 +1,3 @@
+({
+ jobs: []
+})
diff --git a/builder/lib/Mustache/test/_files/empty_list.mustache b/builder/lib/Mustache/test/_files/empty_list.mustache
new file mode 100644
index 000000000..4fdf13d00
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_list.mustache
@@ -0,0 +1,4 @@
+These are the jobs:
+{{#jobs}}
+{{.}}
+{{/jobs}}
diff --git a/builder/lib/Mustache/test/_files/empty_list.txt b/builder/lib/Mustache/test/_files/empty_list.txt
new file mode 100644
index 000000000..d9b4a6729
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_list.txt
@@ -0,0 +1 @@
+These are the jobs:
diff --git a/builder/lib/Mustache/test/_files/empty_sections.js b/builder/lib/Mustache/test/_files/empty_sections.js
new file mode 100644
index 000000000..b4100a597
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_sections.js
@@ -0,0 +1 @@
+({})
diff --git a/builder/lib/Mustache/test/_files/empty_sections.mustache b/builder/lib/Mustache/test/_files/empty_sections.mustache
new file mode 100644
index 000000000..b6065dbb6
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_sections.mustache
@@ -0,0 +1 @@
+{{#foo}}{{/foo}}foo{{#bar}}{{/bar}}
diff --git a/builder/lib/Mustache/test/_files/empty_sections.txt b/builder/lib/Mustache/test/_files/empty_sections.txt
new file mode 100644
index 000000000..257cc5642
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_sections.txt
@@ -0,0 +1 @@
+foo
diff --git a/builder/lib/Mustache/test/_files/empty_string.js b/builder/lib/Mustache/test/_files/empty_string.js
new file mode 100644
index 000000000..be6e05876
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_string.js
@@ -0,0 +1,6 @@
+({
+ description: "That is all!",
+ child: {
+ description: ""
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/empty_string.mustache b/builder/lib/Mustache/test/_files/empty_string.mustache
new file mode 100644
index 000000000..f568441c0
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_string.mustache
@@ -0,0 +1 @@
+{{description}}{{#child}}{{description}}{{/child}}
diff --git a/builder/lib/Mustache/test/_files/empty_string.txt b/builder/lib/Mustache/test/_files/empty_string.txt
new file mode 100644
index 000000000..22e2a6e58
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_string.txt
@@ -0,0 +1 @@
+That is all!
diff --git a/builder/lib/Mustache/test/_files/empty_template.js b/builder/lib/Mustache/test/_files/empty_template.js
new file mode 100644
index 000000000..b4100a597
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_template.js
@@ -0,0 +1 @@
+({})
diff --git a/builder/lib/Mustache/test/_files/empty_template.mustache b/builder/lib/Mustache/test/_files/empty_template.mustache
new file mode 100644
index 000000000..bb2367a20
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_template.mustache
@@ -0,0 +1 @@
+
Test
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/empty_template.txt b/builder/lib/Mustache/test/_files/empty_template.txt
new file mode 100644
index 000000000..bb2367a20
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/empty_template.txt
@@ -0,0 +1 @@
+
Test
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/error_not_found.js b/builder/lib/Mustache/test/_files/error_not_found.js
new file mode 100644
index 000000000..10e470918
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/error_not_found.js
@@ -0,0 +1,3 @@
+({
+ bar: 2
+})
diff --git a/builder/lib/Mustache/test/_files/error_not_found.mustache b/builder/lib/Mustache/test/_files/error_not_found.mustache
new file mode 100644
index 000000000..24369f73a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/error_not_found.mustache
@@ -0,0 +1 @@
+{{foo}}
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/error_not_found.txt b/builder/lib/Mustache/test/_files/error_not_found.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/builder/lib/Mustache/test/_files/escaped.js b/builder/lib/Mustache/test/_files/escaped.js
new file mode 100644
index 000000000..cd77c1f49
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/escaped.js
@@ -0,0 +1,6 @@
+({
+ title: function () {
+ return "Bear > Shark";
+ },
+ entities: "" \"'<>/"
+})
diff --git a/builder/lib/Mustache/test/_files/escaped.mustache b/builder/lib/Mustache/test/_files/escaped.mustache
new file mode 100644
index 000000000..93e800b31
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/escaped.mustache
@@ -0,0 +1,2 @@
+
{{title}}
+And even {{entities}}, but not {{{entities}}}.
diff --git a/builder/lib/Mustache/test/_files/escaped.txt b/builder/lib/Mustache/test/_files/escaped.txt
new file mode 100644
index 000000000..c1527d510
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/escaped.txt
@@ -0,0 +1,2 @@
+
Bear > Shark
+And even " "'<>/, but not " "'<>/.
diff --git a/builder/lib/Mustache/test/_files/falsy.js b/builder/lib/Mustache/test/_files/falsy.js
new file mode 100644
index 000000000..ae9b9bf25
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/falsy.js
@@ -0,0 +1,8 @@
+({
+ "emptyString": "",
+ "emptyArray": [],
+ "zero": 0,
+ "null": null,
+ "undefined": undefined,
+ "NaN": 0/0
+})
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/falsy.mustache b/builder/lib/Mustache/test/_files/falsy.mustache
new file mode 100644
index 000000000..f3698da64
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/falsy.mustache
@@ -0,0 +1,12 @@
+{{#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/builder/lib/Mustache/test/_files/falsy.txt b/builder/lib/Mustache/test/_files/falsy.txt
new file mode 100644
index 000000000..9b7cde39c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/falsy.txt
@@ -0,0 +1,12 @@
+
+inverted empty string
+
+inverted empty array
+
+inverted zero
+
+inverted null
+
+inverted undefined
+
+inverted NaN
diff --git a/builder/lib/Mustache/test/_files/grandparent_context.js b/builder/lib/Mustache/test/_files/grandparent_context.js
new file mode 100644
index 000000000..97dbfd398
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/grandparent_context.js
@@ -0,0 +1,19 @@
+({
+ 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/builder/lib/Mustache/test/_files/grandparent_context.mustache b/builder/lib/Mustache/test/_files/grandparent_context.mustache
new file mode 100644
index 000000000..e6c07a221
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/grandparent_context.mustache
@@ -0,0 +1,10 @@
+{{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/builder/lib/Mustache/test/_files/grandparent_context.txt b/builder/lib/Mustache/test/_files/grandparent_context.txt
new file mode 100644
index 000000000..64996ad4c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/grandparent_context.txt
@@ -0,0 +1,17 @@
+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/builder/lib/Mustache/test/_files/higher_order_sections.js b/builder/lib/Mustache/test/_files/higher_order_sections.js
new file mode 100644
index 000000000..bacb0a44a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/higher_order_sections.js
@@ -0,0 +1,9 @@
+({
+ name: "Tater",
+ helper: "To tinker?",
+ bolder: function () {
+ return function (text, render) {
+ return text + ' => ' + render(text) + ' ' + this.helper;
+ }
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/higher_order_sections.mustache b/builder/lib/Mustache/test/_files/higher_order_sections.mustache
new file mode 100644
index 000000000..04f5318df
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/higher_order_sections.mustache
@@ -0,0 +1 @@
+{{#bolder}}Hi {{name}}.{{/bolder}}
diff --git a/builder/lib/Mustache/test/_files/higher_order_sections.txt b/builder/lib/Mustache/test/_files/higher_order_sections.txt
new file mode 100644
index 000000000..be50ad764
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/higher_order_sections.txt
@@ -0,0 +1 @@
+Hi {{name}}. => Hi Tater. To tinker?
diff --git a/builder/lib/Mustache/test/_files/included_tag.js b/builder/lib/Mustache/test/_files/included_tag.js
new file mode 100644
index 000000000..eb032a42c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/included_tag.js
@@ -0,0 +1,3 @@
+({
+ html: "I like {{mustache}}"
+})
diff --git a/builder/lib/Mustache/test/_files/included_tag.mustache b/builder/lib/Mustache/test/_files/included_tag.mustache
new file mode 100644
index 000000000..70631c259
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/included_tag.mustache
@@ -0,0 +1 @@
+You said "{{{html}}}" today
diff --git a/builder/lib/Mustache/test/_files/included_tag.txt b/builder/lib/Mustache/test/_files/included_tag.txt
new file mode 100644
index 000000000..1af45567f
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/included_tag.txt
@@ -0,0 +1 @@
+You said "I like {{mustache}}" today
diff --git a/builder/lib/Mustache/test/_files/inverted_section.js b/builder/lib/Mustache/test/_files/inverted_section.js
new file mode 100644
index 000000000..f8f08fd26
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/inverted_section.js
@@ -0,0 +1,3 @@
+({
+ "repos": []
+})
diff --git a/builder/lib/Mustache/test/_files/inverted_section.mustache b/builder/lib/Mustache/test/_files/inverted_section.mustache
new file mode 100644
index 000000000..b0a183b10
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/inverted_section.mustache
@@ -0,0 +1,3 @@
+{{#repos}}{{name}}{{/repos}}
+{{^repos}}No repos :({{/repos}}
+{{^nothin}}Hello!{{/nothin}}
diff --git a/builder/lib/Mustache/test/_files/inverted_section.txt b/builder/lib/Mustache/test/_files/inverted_section.txt
new file mode 100644
index 000000000..b421582e7
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/inverted_section.txt
@@ -0,0 +1,3 @@
+
+No repos :(
+Hello!
diff --git a/builder/lib/Mustache/test/_files/keys_with_questionmarks.js b/builder/lib/Mustache/test/_files/keys_with_questionmarks.js
new file mode 100644
index 000000000..becd63102
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/keys_with_questionmarks.js
@@ -0,0 +1,5 @@
+({
+ "person?": {
+ name: "Jon"
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/keys_with_questionmarks.mustache b/builder/lib/Mustache/test/_files/keys_with_questionmarks.mustache
new file mode 100644
index 000000000..417f17f3c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/keys_with_questionmarks.mustache
@@ -0,0 +1,3 @@
+{{#person?}}
+ Hi {{name}}!
+{{/person?}}
diff --git a/builder/lib/Mustache/test/_files/keys_with_questionmarks.txt b/builder/lib/Mustache/test/_files/keys_with_questionmarks.txt
new file mode 100644
index 000000000..0f69b9433
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/keys_with_questionmarks.txt
@@ -0,0 +1 @@
+ Hi Jon!
diff --git a/builder/lib/Mustache/test/_files/malicious_template.js b/builder/lib/Mustache/test/_files/malicious_template.js
new file mode 100644
index 000000000..b4100a597
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/malicious_template.js
@@ -0,0 +1 @@
+({})
diff --git a/builder/lib/Mustache/test/_files/malicious_template.mustache b/builder/lib/Mustache/test/_files/malicious_template.mustache
new file mode 100644
index 000000000..b956867ec
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/malicious_template.mustache
@@ -0,0 +1,5 @@
+{{"+(function () {throw "evil"})()+"}}
+{{{"+(function () {throw "evil"})()+"}}}
+{{> "+(function () {throw "evil"})()+"}}
+{{# "+(function () {throw "evil"})()+"}}
+{{/ "+(function () {throw "evil"})()+"}}
diff --git a/builder/lib/Mustache/test/_files/malicious_template.txt b/builder/lib/Mustache/test/_files/malicious_template.txt
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/malicious_template.txt
@@ -0,0 +1,2 @@
+
+
diff --git a/builder/lib/Mustache/test/_files/multiline_comment.js b/builder/lib/Mustache/test/_files/multiline_comment.js
new file mode 100644
index 000000000..b4100a597
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/multiline_comment.js
@@ -0,0 +1 @@
+({})
diff --git a/builder/lib/Mustache/test/_files/multiline_comment.mustache b/builder/lib/Mustache/test/_files/multiline_comment.mustache
new file mode 100644
index 000000000..dff0893d0
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/multiline_comment.mustache
@@ -0,0 +1,6 @@
+{{!
+
+This is a multi-line comment.
+
+}}
+Hello world!
diff --git a/builder/lib/Mustache/test/_files/multiline_comment.txt b/builder/lib/Mustache/test/_files/multiline_comment.txt
new file mode 100644
index 000000000..cd0875583
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/multiline_comment.txt
@@ -0,0 +1 @@
+Hello world!
diff --git a/builder/lib/Mustache/test/_files/nested_higher_order_sections.js b/builder/lib/Mustache/test/_files/nested_higher_order_sections.js
new file mode 100644
index 000000000..3ccf4d372
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_higher_order_sections.js
@@ -0,0 +1,8 @@
+({
+ bold: function () {
+ return function (text, render) {
+ return '' + render(text) + '';
+ };
+ },
+ person: { name: 'Jonas' }
+});
diff --git a/builder/lib/Mustache/test/_files/nested_higher_order_sections.mustache b/builder/lib/Mustache/test/_files/nested_higher_order_sections.mustache
new file mode 100644
index 000000000..e312fe79a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_higher_order_sections.mustache
@@ -0,0 +1 @@
+{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}}
diff --git a/builder/lib/Mustache/test/_files/nested_higher_order_sections.txt b/builder/lib/Mustache/test/_files/nested_higher_order_sections.txt
new file mode 100644
index 000000000..0ee6a406a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_higher_order_sections.txt
@@ -0,0 +1 @@
+My name is Jonas!
diff --git a/builder/lib/Mustache/test/_files/nested_iterating.js b/builder/lib/Mustache/test/_files/nested_iterating.js
new file mode 100644
index 000000000..2708b2db5
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_iterating.js
@@ -0,0 +1,8 @@
+({
+ inner: [{
+ foo: 'foo',
+ inner: [{
+ bar: 'bar'
+ }]
+ }]
+})
diff --git a/builder/lib/Mustache/test/_files/nested_iterating.mustache b/builder/lib/Mustache/test/_files/nested_iterating.mustache
new file mode 100644
index 000000000..1a3bb1a2e
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_iterating.mustache
@@ -0,0 +1 @@
+{{#inner}}{{foo}}{{#inner}}{{bar}}{{/inner}}{{/inner}}
diff --git a/builder/lib/Mustache/test/_files/nested_iterating.txt b/builder/lib/Mustache/test/_files/nested_iterating.txt
new file mode 100644
index 000000000..323fae03f
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nested_iterating.txt
@@ -0,0 +1 @@
+foobar
diff --git a/builder/lib/Mustache/test/_files/nesting.js b/builder/lib/Mustache/test/_files/nesting.js
new file mode 100644
index 000000000..264cc2f77
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting.js
@@ -0,0 +1,7 @@
+({
+ foo: [
+ {a: {b: 1}},
+ {a: {b: 2}},
+ {a: {b: 3}}
+ ]
+})
diff --git a/builder/lib/Mustache/test/_files/nesting.mustache b/builder/lib/Mustache/test/_files/nesting.mustache
new file mode 100644
index 000000000..551366dea
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting.mustache
@@ -0,0 +1,5 @@
+{{#foo}}
+ {{#a}}
+ {{b}}
+ {{/a}}
+{{/foo}}
diff --git a/builder/lib/Mustache/test/_files/nesting.txt b/builder/lib/Mustache/test/_files/nesting.txt
new file mode 100644
index 000000000..7db34b172
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting.txt
@@ -0,0 +1,3 @@
+ 1
+ 2
+ 3
diff --git a/builder/lib/Mustache/test/_files/nesting_same_name.js b/builder/lib/Mustache/test/_files/nesting_same_name.js
new file mode 100644
index 000000000..10a0c1401
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting_same_name.js
@@ -0,0 +1,8 @@
+({
+ items: [
+ {
+ name: 'name',
+ items: [1, 2, 3, 4]
+ }
+ ]
+})
diff --git a/builder/lib/Mustache/test/_files/nesting_same_name.mustache b/builder/lib/Mustache/test/_files/nesting_same_name.mustache
new file mode 100644
index 000000000..777dbd685
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting_same_name.mustache
@@ -0,0 +1 @@
+{{#items}}{{name}}{{#items}}{{.}}{{/items}}{{/items}}
diff --git a/builder/lib/Mustache/test/_files/nesting_same_name.txt b/builder/lib/Mustache/test/_files/nesting_same_name.txt
new file mode 100644
index 000000000..34fcfd3e8
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/nesting_same_name.txt
@@ -0,0 +1 @@
+name1234
diff --git a/builder/lib/Mustache/test/_files/null_string.js b/builder/lib/Mustache/test/_files/null_string.js
new file mode 100644
index 000000000..984ee516a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_string.js
@@ -0,0 +1,10 @@
+({
+ name: "Elise",
+ glytch: true,
+ binary: false,
+ value: null,
+ undef: undefined,
+ numeric: function() {
+ return NaN;
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/null_string.mustache b/builder/lib/Mustache/test/_files/null_string.mustache
new file mode 100644
index 000000000..a6f33009f
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_string.mustache
@@ -0,0 +1,6 @@
+Hello {{name}}
+glytch {{glytch}}
+binary {{binary}}
+value {{value}}
+undef {{undef}}
+numeric {{numeric}}
diff --git a/builder/lib/Mustache/test/_files/null_string.txt b/builder/lib/Mustache/test/_files/null_string.txt
new file mode 100644
index 000000000..bcabe0a5a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_string.txt
@@ -0,0 +1,6 @@
+Hello Elise
+glytch true
+binary false
+value
+undef
+numeric NaN
diff --git a/builder/lib/Mustache/test/_files/null_view.js b/builder/lib/Mustache/test/_files/null_view.js
new file mode 100644
index 000000000..dbdae728e
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_view.js
@@ -0,0 +1,4 @@
+({
+ name: 'Joe',
+ friends: null
+})
diff --git a/builder/lib/Mustache/test/_files/null_view.mustache b/builder/lib/Mustache/test/_files/null_view.mustache
new file mode 100644
index 000000000..115b376b5
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_view.mustache
@@ -0,0 +1 @@
+{{name}}'s friends: {{#friends}}{{name}}, {{/friends}}
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/null_view.txt b/builder/lib/Mustache/test/_files/null_view.txt
new file mode 100644
index 000000000..15ed2abe1
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/null_view.txt
@@ -0,0 +1 @@
+Joe's friends:
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/partial_array.js b/builder/lib/Mustache/test/_files/partial_array.js
new file mode 100644
index 000000000..2a6ddf1cf
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array.js
@@ -0,0 +1,3 @@
+({
+ array: ['1', '2', '3', '4']
+})
diff --git a/builder/lib/Mustache/test/_files/partial_array.mustache b/builder/lib/Mustache/test/_files/partial_array.mustache
new file mode 100644
index 000000000..7a336fee8
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array.mustache
@@ -0,0 +1 @@
+{{>partial}}
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/partial_array.partial b/builder/lib/Mustache/test/_files/partial_array.partial
new file mode 100644
index 000000000..0ba652c1e
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array.partial
@@ -0,0 +1,4 @@
+Here's a non-sense array of values
+{{#array}}
+ {{.}}
+{{/array}}
diff --git a/builder/lib/Mustache/test/_files/partial_array.txt b/builder/lib/Mustache/test/_files/partial_array.txt
new file mode 100644
index 000000000..892837cb7
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array.txt
@@ -0,0 +1,5 @@
+Here's a non-sense array of values
+ 1
+ 2
+ 3
+ 4
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials.js b/builder/lib/Mustache/test/_files/partial_array_of_partials.js
new file mode 100644
index 000000000..03f13c946
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials.js
@@ -0,0 +1,8 @@
+({
+ numbers: [
+ {i: '1'},
+ {i: '2'},
+ {i: '3'},
+ {i: '4'}
+ ]
+})
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials.mustache b/builder/lib/Mustache/test/_files/partial_array_of_partials.mustache
new file mode 100644
index 000000000..1af6d68c6
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials.mustache
@@ -0,0 +1,4 @@
+Here is some stuff!
+{{#numbers}}
+{{>partial}}
+{{/numbers}}
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials.partial b/builder/lib/Mustache/test/_files/partial_array_of_partials.partial
new file mode 100644
index 000000000..bdde77daf
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials.partial
@@ -0,0 +1 @@
+{{i}}
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials.txt b/builder/lib/Mustache/test/_files/partial_array_of_partials.txt
new file mode 100644
index 000000000..f622375c8
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials.txt
@@ -0,0 +1,5 @@
+Here is some stuff!
+1
+2
+3
+4
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.js b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.js
new file mode 100644
index 000000000..9ec0c00ff
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.js
@@ -0,0 +1,3 @@
+({
+ numbers: ['1', '2', '3', '4']
+})
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.mustache b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.mustache
new file mode 100644
index 000000000..1af6d68c6
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.mustache
@@ -0,0 +1,4 @@
+Here is some stuff!
+{{#numbers}}
+{{>partial}}
+{{/numbers}}
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.partial b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.partial
new file mode 100644
index 000000000..12f715986
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.partial
@@ -0,0 +1 @@
+{{.}}
diff --git a/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.txt b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.txt
new file mode 100644
index 000000000..f622375c8
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_array_of_partials_implicit.txt
@@ -0,0 +1,5 @@
+Here is some stuff!
+1
+2
+3
+4
diff --git a/builder/lib/Mustache/test/_files/partial_empty.js b/builder/lib/Mustache/test/_files/partial_empty.js
new file mode 100644
index 000000000..82b8c2242
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_empty.js
@@ -0,0 +1,3 @@
+({
+ foo: 1
+})
diff --git a/builder/lib/Mustache/test/_files/partial_empty.mustache b/builder/lib/Mustache/test/_files/partial_empty.mustache
new file mode 100644
index 000000000..a71004703
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_empty.mustache
@@ -0,0 +1,2 @@
+hey {{foo}}
+{{>partial}}
diff --git a/builder/lib/Mustache/test/_files/partial_empty.partial b/builder/lib/Mustache/test/_files/partial_empty.partial
new file mode 100644
index 000000000..e69de29bb
diff --git a/builder/lib/Mustache/test/_files/partial_empty.txt b/builder/lib/Mustache/test/_files/partial_empty.txt
new file mode 100644
index 000000000..1a679077b
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_empty.txt
@@ -0,0 +1 @@
+hey 1
diff --git a/builder/lib/Mustache/test/_files/partial_template.js b/builder/lib/Mustache/test/_files/partial_template.js
new file mode 100644
index 000000000..a913f8784
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_template.js
@@ -0,0 +1,6 @@
+({
+ title: function () {
+ return "Welcome";
+ },
+ again: "Goodbye"
+})
diff --git a/builder/lib/Mustache/test/_files/partial_template.mustache b/builder/lib/Mustache/test/_files/partial_template.mustache
new file mode 100644
index 000000000..6a7492e00
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_template.mustache
@@ -0,0 +1,2 @@
+
{{title}}
+{{>partial}}
diff --git a/builder/lib/Mustache/test/_files/partial_template.partial b/builder/lib/Mustache/test/_files/partial_template.partial
new file mode 100644
index 000000000..a40452924
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_template.partial
@@ -0,0 +1 @@
+Again, {{again}}!
diff --git a/builder/lib/Mustache/test/_files/partial_template.txt b/builder/lib/Mustache/test/_files/partial_template.txt
new file mode 100644
index 000000000..692698f08
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_template.txt
@@ -0,0 +1,2 @@
+
diff --git a/builder/lib/Mustache/test/_files/partial_view.partial b/builder/lib/Mustache/test/_files/partial_view.partial
new file mode 100644
index 000000000..03df20686
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_view.partial
@@ -0,0 +1,5 @@
+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/builder/lib/Mustache/test/_files/partial_view.txt b/builder/lib/Mustache/test/_files/partial_view.txt
new file mode 100644
index 000000000..c09147c7f
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/partial_view.txt
@@ -0,0 +1,5 @@
+
Welcome
+Hello Chris
+You have just won $10000!
+Well, $6000, after taxes.
+
+{{/a_object}}
diff --git a/builder/lib/Mustache/test/_files/section_as_context.txt b/builder/lib/Mustache/test/_files/section_as_context.txt
new file mode 100644
index 000000000..d834e8047
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/section_as_context.txt
@@ -0,0 +1,6 @@
+
this is an object
+
one of its attributes is a list
+
+
listitem1
+
listitem2
+
diff --git a/builder/lib/Mustache/test/_files/simple.js b/builder/lib/Mustache/test/_files/simple.js
new file mode 100644
index 000000000..1d8d6f425
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/simple.js
@@ -0,0 +1,8 @@
+({
+ name: "Chris",
+ value: 10000,
+ taxed_value: function () {
+ return this.value - (this.value * 0.4);
+ },
+ in_ca: true
+})
diff --git a/builder/lib/Mustache/test/_files/simple.mustache b/builder/lib/Mustache/test/_files/simple.mustache
new file mode 100644
index 000000000..2fea6327a
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/simple.mustache
@@ -0,0 +1,5 @@
+Hello {{name}}
+You have just won ${{value}}!
+{{#in_ca}}
+Well, ${{ taxed_value }}, after taxes.
+{{/in_ca}}
diff --git a/builder/lib/Mustache/test/_files/simple.txt b/builder/lib/Mustache/test/_files/simple.txt
new file mode 100644
index 000000000..5d75d6562
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/simple.txt
@@ -0,0 +1,3 @@
+Hello Chris
+You have just won $10000!
+Well, $6000, after taxes.
diff --git a/builder/lib/Mustache/test/_files/string_as_context.js b/builder/lib/Mustache/test/_files/string_as_context.js
new file mode 100644
index 000000000..e8bb4da00
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/string_as_context.js
@@ -0,0 +1,4 @@
+({
+ a_string: 'aa',
+ a_list: ['a','b','c']
+})
diff --git a/builder/lib/Mustache/test/_files/string_as_context.mustache b/builder/lib/Mustache/test/_files/string_as_context.mustache
new file mode 100644
index 000000000..00f7181b1
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/string_as_context.mustache
@@ -0,0 +1,5 @@
+
+{{#a_list}}
+
{{a_string}}/{{.}}
+{{/a_list}}
+
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/string_as_context.txt b/builder/lib/Mustache/test/_files/string_as_context.txt
new file mode 100644
index 000000000..8bd87ff82
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/string_as_context.txt
@@ -0,0 +1,5 @@
+
+
aa/a
+
aa/b
+
aa/c
+
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/_files/two_in_a_row.js b/builder/lib/Mustache/test/_files/two_in_a_row.js
new file mode 100644
index 000000000..9c17c1173
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/two_in_a_row.js
@@ -0,0 +1,4 @@
+({
+ name: "Joe",
+ greeting: "Welcome"
+})
diff --git a/builder/lib/Mustache/test/_files/two_in_a_row.mustache b/builder/lib/Mustache/test/_files/two_in_a_row.mustache
new file mode 100644
index 000000000..b23f29e87
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/two_in_a_row.mustache
@@ -0,0 +1 @@
+{{greeting}}, {{name}}!
diff --git a/builder/lib/Mustache/test/_files/two_in_a_row.txt b/builder/lib/Mustache/test/_files/two_in_a_row.txt
new file mode 100644
index 000000000..c6d6a9b48
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/two_in_a_row.txt
@@ -0,0 +1 @@
+Welcome, Joe!
diff --git a/builder/lib/Mustache/test/_files/two_sections.js b/builder/lib/Mustache/test/_files/two_sections.js
new file mode 100644
index 000000000..b4100a597
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/two_sections.js
@@ -0,0 +1 @@
+({})
diff --git a/builder/lib/Mustache/test/_files/two_sections.mustache b/builder/lib/Mustache/test/_files/two_sections.mustache
new file mode 100644
index 000000000..a4b9f2a78
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/two_sections.mustache
@@ -0,0 +1,4 @@
+{{#foo}}
+{{/foo}}
+{{#bar}}
+{{/bar}}
diff --git a/builder/lib/Mustache/test/_files/two_sections.txt b/builder/lib/Mustache/test/_files/two_sections.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/builder/lib/Mustache/test/_files/unescaped.js b/builder/lib/Mustache/test/_files/unescaped.js
new file mode 100644
index 000000000..b6d064f12
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/unescaped.js
@@ -0,0 +1,5 @@
+({
+ title: function () {
+ return "Bear > Shark";
+ }
+})
diff --git a/builder/lib/Mustache/test/_files/unescaped.mustache b/builder/lib/Mustache/test/_files/unescaped.mustache
new file mode 100644
index 000000000..6b07d7b71
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/unescaped.mustache
@@ -0,0 +1 @@
+
{{{title}}}
diff --git a/builder/lib/Mustache/test/_files/unescaped.txt b/builder/lib/Mustache/test/_files/unescaped.txt
new file mode 100644
index 000000000..089ad7967
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/unescaped.txt
@@ -0,0 +1 @@
+
Bear > Shark
diff --git a/builder/lib/Mustache/test/_files/whitespace.js b/builder/lib/Mustache/test/_files/whitespace.js
new file mode 100644
index 000000000..f41cb5640
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/whitespace.js
@@ -0,0 +1,4 @@
+({
+ tag1: "Hello",
+ tag2: "World"
+})
diff --git a/builder/lib/Mustache/test/_files/whitespace.mustache b/builder/lib/Mustache/test/_files/whitespace.mustache
new file mode 100644
index 000000000..aa76e08ea
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/whitespace.mustache
@@ -0,0 +1,4 @@
+{{tag1}}
+
+
+{{tag2}}.
diff --git a/builder/lib/Mustache/test/_files/whitespace.txt b/builder/lib/Mustache/test/_files/whitespace.txt
new file mode 100644
index 000000000..851fa7448
--- /dev/null
+++ b/builder/lib/Mustache/test/_files/whitespace.txt
@@ -0,0 +1,4 @@
+Hello
+
+
+World.
diff --git a/builder/lib/Mustache/test/context-test.js b/builder/lib/Mustache/test/context-test.js
new file mode 100644
index 000000000..752f74bc7
--- /dev/null
+++ b/builder/lib/Mustache/test/context-test.js
@@ -0,0 +1,51 @@
+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/builder/lib/Mustache/test/helper.js b/builder/lib/Mustache/test/helper.js
new file mode 100644
index 000000000..a91fe499f
--- /dev/null
+++ b/builder/lib/Mustache/test/helper.js
@@ -0,0 +1,2 @@
+assert = require('assert');
+Mustache = require('../mustache');
diff --git a/builder/lib/Mustache/test/mustache-spec-test.js b/builder/lib/Mustache/test/mustache-spec-test.js
new file mode 100644
index 000000000..1050ea43d
--- /dev/null
+++ b/builder/lib/Mustache/test/mustache-spec-test.js
@@ -0,0 +1,89 @@
+require('./helper');
+
+var fs = require('fs');
+var path = require('path');
+var specsDir = path.join(__dirname, 'spec/specs');
+
+var skipTests = {
+ comments: [
+ 'Standalone Without Newline'
+ ],
+ delimiters: [
+ 'Standalone Without Newline'
+ ],
+ inverted: [
+ 'Standalone Without Newline'
+ ],
+ partials: [
+ 'Standalone Without Previous Line',
+ 'Standalone Without Newline',
+ 'Standalone Indentation'
+ ],
+ sections: [
+ 'Standalone Without Newline'
+ ],
+ '~lambdas': [
+ 'Interpolation',
+ 'Interpolation - Expansion',
+ 'Interpolation - Alternate Delimiters',
+ 'Interpolation - Multiple Calls',
+ 'Escaping',
+ 'Section - Expansion',
+ 'Section - Alternate Delimiters'
+ ]
+};
+
+// You can run the skiped tests by setting the NOSKIP environment variable to
+// true (e.g. NOSKIP=true mocha test/mustache-spec-test.js)
+var noSkip = process.env.NOSKIP;
+
+// You can put the name of a specific test file to run in the TEST environment
+// variable (e.g. TEST=interpolation mocha test/mustache-spec-test.js)
+var fileToRun = process.env.TEST;
+
+// Mustache should work on node 0.6 that doesn't have fs.exisisSync
+function existsDir(path) {
+ try {
+ return fs.statSync(path).isDirectory();
+ } catch (x) {
+ return false;
+ }
+}
+
+var specFiles;
+if (fileToRun) {
+ specFiles = [fileToRun];
+} else if (existsDir(specsDir)) {
+ specFiles = fs.readdirSync(specsDir).filter(function (file) {
+ return (/\.json$/).test(file);
+ }).map(function (file) {
+ return path.basename(file).replace(/\.json$/, '');
+ }).sort();
+} else {
+ specFiles = [];
+}
+
+function getSpecs(specArea) {
+ return JSON.parse(fs.readFileSync(path.join(specsDir, specArea + '.' + 'json'), 'utf8'));
+}
+
+describe('Mustache spec compliance', function() {
+ beforeEach(function () {
+ Mustache.clearCache();
+ });
+
+ specFiles.forEach(function(specArea) {
+ describe('- ' + specArea + ':', function() {
+ var specs = getSpecs(specArea);
+ specs.tests.forEach(function(test) {
+ var it_ = (!noSkip && skipTests[specArea] && skipTests[specArea].indexOf(test.name) >= 0) ? it.skip : it;
+ it_(test.name + ' - ' + test.desc, function() {
+ if (test.data.lambda && test.data.lambda.__tag__ === 'code')
+ test.data.lambda = eval('(function() { return ' + test.data.lambda.js + '; })');
+ var output = Mustache.render(test.template, test.data, test.partials);
+ assert.equal(output, test.expected);
+ });
+ });
+ });
+ });
+});
\ No newline at end of file
diff --git a/builder/lib/Mustache/test/parse-test.js b/builder/lib/Mustache/test/parse-test.js
new file mode 100644
index 000000000..40d23a431
--- /dev/null
+++ b/builder/lib/Mustache/test/parse-test.js
@@ -0,0 +1,106 @@
+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/builder/lib/Mustache/test/render-test.js b/builder/lib/Mustache/test/render-test.js
new file mode 100644
index 000000000..acec47ffd
--- /dev/null
+++ b/builder/lib/Mustache/test/render-test.js
@@ -0,0 +1,68 @@
+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/builder/lib/Mustache/test/scanner-test.js b/builder/lib/Mustache/test/scanner-test.js
new file mode 100644
index 000000000..9c9766420
--- /dev/null
+++ b/builder/lib/Mustache/test/scanner-test.js
@@ -0,0 +1,78 @@
+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/builder/lib/Mustache/test/writer-test.js b/builder/lib/Mustache/test/writer-test.js
new file mode 100644
index 000000000..db2813a5f
--- /dev/null
+++ b/builder/lib/Mustache/test/writer-test.js
@@ -0,0 +1,43 @@
+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/builder/lib/Mustache/wrappers/dojo/mustache.js.post b/builder/lib/Mustache/wrappers/dojo/mustache.js.post
new file mode 100644
index 000000000..eeeb4b7f0
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/dojo/mustache.js.post
@@ -0,0 +1,4 @@
+
+ dojox.mustache = dojo.hitch(Mustache, "render");
+
+})();
\ No newline at end of file
diff --git a/builder/lib/Mustache/wrappers/dojo/mustache.js.pre b/builder/lib/Mustache/wrappers/dojo/mustache.js.pre
new file mode 100644
index 000000000..f87f3cd77
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/dojo/mustache.js.pre
@@ -0,0 +1,9 @@
+/*
+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/builder/lib/Mustache/wrappers/jquery/mustache.js.post b/builder/lib/Mustache/wrappers/jquery/mustache.js.post
new file mode 100644
index 000000000..3209e915f
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/jquery/mustache.js.post
@@ -0,0 +1,13 @@
+ $.mustache = function (template, view, partials) {
+ return Mustache.render(template, view, partials);
+ };
+
+ $.fn.mustache = function (view, partials) {
+ return $(this).map(function (i, elm) {
+ var template = $.trim($(elm).html());
+ var output = $.mustache(template, view, partials);
+ return $(output).get();
+ });
+ };
+
+})(jQuery);
diff --git a/builder/lib/Mustache/wrappers/jquery/mustache.js.pre b/builder/lib/Mustache/wrappers/jquery/mustache.js.pre
new file mode 100644
index 000000000..b4d8af5e1
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/jquery/mustache.js.pre
@@ -0,0 +1,9 @@
+/*
+Shameless port of a shameless port
+@defunkt => @janl => @aq
+
+See http://github.com/defunkt/mustache for more info.
+*/
+
+;(function($) {
+
diff --git a/builder/lib/Mustache/wrappers/mootools/mustache.js.post b/builder/lib/Mustache/wrappers/mootools/mustache.js.post
new file mode 100644
index 000000000..aa9b8fab7
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/mootools/mustache.js.post
@@ -0,0 +1,5 @@
+
+ Object.implement('mustache', function(view, partials){
+ return Mustache.render(view, this, partials);
+ });
+})();
diff --git a/builder/lib/Mustache/wrappers/mootools/mustache.js.pre b/builder/lib/Mustache/wrappers/mootools/mustache.js.pre
new file mode 100644
index 000000000..9839f9931
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/mootools/mustache.js.pre
@@ -0,0 +1,2 @@
+(function(){
+
diff --git a/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.post b/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.post
new file mode 100644
index 000000000..6488b9c9c
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.post
@@ -0,0 +1,9 @@
+/**
+ * Above is the original mustache code.
+ */
+
+// EXPOSE qooxdoo variant
+qx.bom.Template.version = this.Mustache.version;
+qx.bom.Template.render = this.Mustache.render;
+
+}).call({});
\ No newline at end of file
diff --git a/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.pre b/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.pre
new file mode 100644
index 000000000..22aca98c6
--- /dev/null
+++ b/builder/lib/Mustache/wrappers/qooxdoo/mustache.js.pre
@@ -0,0 +1,164 @@
+/* ************************************************************************
+
+ 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.7.2
+
+ 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.render(template, view);
+ * // return "Hi, my name is qooxdoo!"
+ *
+
diff --git a/source/_patternlab-files/partials/patternPaths.mustache b/source/_patternlab-files/partials/patternPaths.mustache
new file mode 100644
index 000000000..798744030
--- /dev/null
+++ b/source/_patternlab-files/partials/patternPaths.mustache
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/viewAllPaths.mustache b/source/_patternlab-files/partials/viewAllPaths.mustache
new file mode 100644
index 000000000..b0e044d97
--- /dev/null
+++ b/source/_patternlab-files/partials/viewAllPaths.mustache
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/websockets.mustache b/source/_patternlab-files/partials/websockets.mustache
new file mode 100644
index 000000000..139a9b254
--- /dev/null
+++ b/source/_patternlab-files/partials/websockets.mustache
@@ -0,0 +1,6 @@
+
diff --git a/source/_patternlab-files/pattern-header-footer/README b/source/_patternlab-files/pattern-header-footer/README
new file mode 100644
index 000000000..6c5a981ab
--- /dev/null
+++ b/source/_patternlab-files/pattern-header-footer/README
@@ -0,0 +1 @@
+This is not a real pattern. It's simply the header and footer that patterns get sandwiched between when they're processed by the builder.
\ No newline at end of file
diff --git a/source/_patternlab-files/pattern-header-footer/footer.html b/source/_patternlab-files/pattern-header-footer/footer.html
new file mode 100644
index 000000000..0e6bb20f4
--- /dev/null
+++ b/source/_patternlab-files/pattern-header-footer/footer.html
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+