summaryrefslogtreecommitdiffstats
path: root/spec/parser_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Convert parser and tokenizer tests to javascriptkpdecker2013-06-011-426/+0
|
* Move external AST tests into qunit speckpdecker2013-05-311-11/+0
|
* Allow ID, STRING, or INTEGER for partial namekpdecker2013-05-291-1/+1
| | | Fixes #519
* Add support for complex ids in @data referenceskpdecker2013-05-271-1/+1
|
* Add unicode support for ID tokenskpdecker2013-05-271-0/+4
| | | | Fixes #433 Fixes #469
* Remove FULL_CONTEXT from spec_helperkpdecker2013-04-071-1/+1
|
* Handlebars.parse/precompile/compile can now be passed an already-compiled ↵machty2013-02-071-0/+19
| | | | Handlebars AST.
* Merge pull request #388 from dmarcotte/empty-inverse-blocksYehuda Katz2012-12-231-0/+124
|\ | | | | Allow empty blocks around simple inverses
| * Allow empty blocks around simple inversesDaniel Marcotte2012-12-111-0/+124
| | | | | | | | | | | | | | | | Previously, the parser required at least one character of whitespace to properly interpret empty blocks around simple inverses, which was non-intuitive and inconsistent with empty block parsing. Update the parser to allow empty blocks around simple inverses.
* | Partials can be pathsLes Hill2012-12-131-2/+10
|/ | | | | | Allows partials with slashes, a common partial syntax. For example: {{> shared/dude}}
* Recognize bar='baz' hash argumentLes Hill2012-08-141-0/+4
|
* Add support for @data variablesYehuda Katz2012-07-051-0/+16
|
* Clean up parser tests and AST printertomhuda2012-05-281-32/+30
|
* Split the tests into compiler and vm testskpdecker2011-07-301-0/+4
|
* Move mismatched block test from quint to parser tests.kpdecker2011-07-301-0/+1
|
* Add BOOLEAN supporttomhuda2011-06-011-0/+25
|
* Add support for INTEGER expressionstomhuda2011-06-011-1/+17
|
* Merge pull request #69 from rgrove/allow-hyphens.Yehuda Katz2011-05-031-0/+4
|\ | | | | Allow ids to contain hyphens. Fixes #36.
| * Allow ids to contain hyphens. Fixes #36.Ryan Grove2011-04-281-0/+4
| | | | | | | | | | Previously, a mustache like {{foo-bar}} would generate a parse error, which was a departure from the behavior of other Mustache implementations.
* | Support multi-line comments.Ryan Grove2011-04-181-0/+10
|/ | | | | {{! Like this. }}
* Add Hash arguments to simple mustaches (TODO: add Hash args to block helpers)tomhuda2011-03-041-8/+9
|
* Add support for hash args in the tokenizer and parsertomhuda2011-03-031-0/+22
|
* Finish compatibility with the old handlebars:wycats2010-12-031-1/+1
| | | | | | * foo"bar" is an invalid param * {{foo}}bar{{/baz}} is invalid * fix a number of issues with inverse sections * add partials
* Inverse should really be its own node, as it has totally different runtime ↵wycats2010-12-031-3/+8
| | | | semantics
* Add support for inverted sections in the parserwycats2010-12-031-2/+14
|
* Fix a number of outstanding issues:wycats2010-12-021-2/+12
| | | | | | | | | | | | * {{}} escape their contents, {{{}}} and {{& }} do not * Add support in the parser, tokenizer and AST for partials with context (support is still not there in the runtime) * Fix some inconsistencies with the old behavior involving the correct printing of null and undefined * Add Handlebars.Exception * Fixed an issue involving ./foo and this/foo * Fleshed out helperMissing in the specs (this will be moved out into handlebars proper once registerHelper and registerPartial are added)
* Test the parser, and clean up ID having multiple partswycats2010-11-251-0/+154