summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix inheritance spec whitespaceJulian Gonggrijp2021-04-191-13/+15
| |
| * Merge branch 'master' into optional-inheritance-specJulian Gonggrijp2021-04-1912-41/+1590
| |\ | |/ |/|
* | Merge pull request #121 from softmoth/json-code-tagDan Appel2021-03-302-2/+17
|\ \ | | | | | | Fix Rakefile to add __tag__: code for ~lambda test data
| * | Fix Rakefile to add __tag__: code for ~lambda test dataTim Siegel2021-03-292-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was broken when Ruby switched YAML engines from Syck to Psych around Ruby 1.9.3. Syck was removed completely around version 2.0. The code didn't fail, because Psych also implements the add_builtin_type routine, but it does not recognize `!code` as a builtin type (because it isn't; builtins look like !!str or !!map). Instead, Psych requires a custom class to handle decoding the tagged YAML item to Ruby. And then, to get JSON to actually display the object, it is easiest to just inherit from `Hash`.
* | | Merge pull request #119 from softmoth/json-newlineDan Appel2021-03-308-8/+1463
|\ \ \ | |/ / | | | Pretty print JSON files, and terminate with newline
| * | Pretty print JSON files, and terminate with newlineTim Siegel2021-03-298-8/+1463
|/ / | | | | | | | | | | | | | | | | | | | | | | Having the data all on one line makes it hard for implementations that rely on the JSON format to locate the source of a failure. Text files that don't end with a newline can be troublesome or unacceptable in some contexts. The only down side is a bit of merging hassle for existing pull requests. But that happens anyways, and of course the YAML file is authoritative so JSON conflicts can be ignored in practice.
* | Merge pull request #122 from softmoth/format-testing-docDan Appel2021-03-291-26/+25
|\ \ | | | | | | Fix TESTING.md Markdown list syntax; no content changes
| * | Fix TESTING.md Markdown list syntax; no content changesTim Siegel2021-03-211-26/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The present indentation isn't valid Markdown, and breaks the display when viewing the rendered file, as on Github. Please compare: - Old: https://github.com/mustache/spec/blob/f75ffbf0a90e6ccecb11df58cdb4cc400ac2919d/TESTING.md - Numbering goes 1, 2, 3 (wrong), 4 (wrong), 2.1 (out-dented, not part of the list), 3, 4. - Bulleted list under section 2.1 is entirely preformatted, rather than rendered as the intended list items - New: https://github.com/softmoth/mustache-spec/blob/format-testing-doc/TESTING.md This patch moves what was "item" 2.1 back under item 2 without an extra list item. Unfortunately, Markdown doesn't handle this particular structure elegantly as far as I know. It also switches to backtick quotes for all literals.
* | | Merge pull request #116 from softmoth/rakuDan Appel2021-03-292-1/+11
|\ \ \ | | | | | | | | ~lambdas: Add Raku language tests (formerly Perl 6)
| * | | ~lambdas: Add Raku language tests (formerly Perl 6)Tim Siegel2021-03-172-1/+11
| |/ /
* | | Merge pull request #118 from adam-fowler/fix-section-variable-testDan Appel2021-03-292-2/+2
|\ \ \ | |/ / |/| | Fix Variable test in sections.yml
| * | Run rake buildAdam Fowler2021-03-191-1/+1
| | |
| * | Fix Variable test in sections.ymlAdam Fowler2021-03-181-1/+1
|/ /
* | Add MIT licenseDan Appel2021-03-101-0/+20
| |
* | Merge pull request #114 from gasche/clarify-context-stacksDan Appel2021-03-092-6/+38
|\ \
| * | update the JSON specs (rake build)Gabriel Scherer2021-03-091-1/+1
| | |
| * | Add List context checkAndrew Martin2021-03-091-0/+15
| | |
| * | clarify the behavior of context stacks / parent contextsGabriel Scherer2021-03-091-5/+22
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The behavior of "context stacks" is not explained very clearly in the documentation outside the spec, but the following text from mustache(5) (http://mustache.github.io/mustache.5.html) is pretty clear: > A {{name}} tag in a basic template will try to find the name key in > the current context. If there is no name key, the parent contexts > will be checked recursively. If the top context is reached and the > name key is still not found, nothing will be rendered. In particular, when the documentation of section mentions that > When the value is a non-empty list [..]. The context of the block > will be set to the current item for each iteration. or > When the value is non-false but not a list, it will be used as the > context for a single rendering of the block. it should be understood that the new context becomes the "current context", and that the previous context becomes a "parent context", and its binding are still available. The new tests check that these properties hold, in particular for sections on non-object non-false values, where this was not previously tested in the spec.
* | Merge pull request #113 from gasche/refresh-specsDan Appel2021-03-088-8/+9
|\ \ | | | | | | Refresh the JSON specs
| * | update the generated .json filesGabriel Scherer2020-12-247-7/+7
| | |
| * | Rakefile: ensure the ATTN warning is merged before the test data, not afterGabriel Scherer2020-12-241-1/+2
|/ / | | | | | | | | | | | | On my system (yaml gem version 0.1.0), `foo.merge(bar)` will include the keys of `foo` before the keys of `bar`, so the previous Rakebuild definition would include the ATTN warning *after* the test data in the rendered JSON files.
* | Merge pull request #81 from bobthecow/implicit-iterator-iterationv1.1.3Ricardo Mendes2015-02-222-1/+8
|\ \ | | | | | | Allow iterating over implicit iterators.
| * | Test for iterating over implicit iterators.Justin Hileman2014-09-142-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implicit iterators should be treated just like explicit tags, i.e. they should work for iterating over nested arrays. {{#items}} {{#.}} {{.}} {{/.}} {{/items}} See mustache/mustache#177
* | | Merge pull request #36 from kanru/masterRicardo Mendes2014-10-241-0/+10
|\ \ \ | |/ / |/| | Add lambda spec for Common Lisp
| * | Add lambda spec for Common Lisp.Kan-Ru Chen2012-01-291-0/+10
| | |
| | * Add template inheritance specDan Miller2014-04-142-0/+193
| |/ |/|
* | Merge pull request #48 from cjerdonek/dotted-name-precedencePieter van de Bruggen2012-05-241-0/+8
|\ \ | |/ |/| Add a test that dotted name resolution should make forward-only progress
| * Simplify issue #48 test case to be minimal.Chris Jerdonek2012-05-241-3/+5
| |
| * Added "Dotted Names - Context Precedence" test.Chris Jerdonek2012-04-291-0/+6
|/ | | | | This test case tests that successive portions of dotted names should be resolved against former resolutions (i.e. forward-only progress).
* Failed partial lookups should be empty. Fixes #21.Pieter van de Bruggen2011-07-152-2/+2
|
* Missing partials should be treated as empty strings.Pieter van de Bruggen2011-07-042-2/+10
|
* Merge remote-tracking branch 'davidsantiago/master'Pieter van de Bruggen2011-05-232-51/+61
|\
| * Added Clojure functions to the Lambda spec.David Santiago2011-05-238-7/+17
|/
* Tagging v1.1.2.v1.1.2Pieter van de Bruggen2011-03-201-1/+1
|
* Merge branch 'v1.0'Pieter van de Bruggen2011-03-202-4/+33
|\ | | | | | | | | Conflicts: Changes
| * Tagging v1.0.3.v1.0.3Pieter van de Bruggen2011-03-201-1/+1
| |
| * Tests for rendering lambdas with alternate delims.Pieter van de Bruggen2011-03-202-3/+31
| |
* | Merge branch 'v1.0'Pieter van de Bruggen2011-03-0811-5/+73
|\ \ | |/ | | | | | | | | | | Conflicts: Changes specs/inverted.json specs/sections.json
| * Added tests for standalone tags at string boundaries.Pieter van de Bruggen2011-03-0811-5/+70
| |
* | Updating Changes for v1.1.1v1.1.1Pieter van de Bruggen2011-03-051-0/+4
| |
* | Merge branch 'v1.0'Pieter van de Bruggen2011-03-051-0/+4
|\ \ | |/ | | | | | | Conflicts: Changes
| * Updating Changes for v1.0.2v1.0.2Pieter van de Bruggen2011-03-051-0/+4
| |
* | Merge branch 'v1.0'Pieter van de Bruggen2011-03-0510-5/+48
|\ \ | |/ | | | | | | | | | | Conflicts: specs/comments.json specs/inverted.json specs/sections.json
| * Adding specs for Windows newlines.Pieter van de Bruggen2011-03-0510-5/+36
| |
| * Adding spec for indented inline sections.Pieter van de Bruggen2011-03-055-3/+15
| |
* | Updating the Changes file for v1.1.0v1.1.0Pieter van de Bruggen2011-03-041-1/+1
| |
* | Actually finishing the updates to Changes.Pieter van de Bruggen2011-03-021-1/+3
| |
* | Updating the Changes file for v1.1.0.Pieter van de Bruggen2011-03-021-0/+7
| |
* | Merge branch 'v1.0'Pieter van de Bruggen2011-03-021-0/+6
|\ \ | |/ | | | | | | | | Conflicts: specs/inverted.yml specs/sections.yml
| * Updating the changelog for v1.0.1.v1.0.1Pieter van de Bruggen2011-03-021-0/+4
| |