kpdecker
c1020a0130
Add unicode support for ID tokens
...
Fixes #433
Fixes #469
2013-05-27 11:56:28 -05:00
kpdecker
73f2016a6a
Remove FULL_CONTEXT from spec_helper
2013-04-07 16:50:57 -05:00
machty
a48e32bbf6
Handlebars.parse/precompile/compile can now be passed an already-compiled Handlebars AST.
2013-02-07 02:06:17 -05:00
Yehuda Katz
17ee7ffaca
Merge pull request #388 from dmarcotte/empty-inverse-blocks
...
Allow empty blocks around simple inverses
2012-12-23 20:31:46 -08:00
Les Hill
4bb794d814
Partials can be paths
...
Allows partials with slashes, a common partial syntax. For example:
{{> shared/dude}}
2012-12-13 11:15:38 -08:00
Daniel Marcotte
4cfda479fa
Allow empty blocks around simple inverses
...
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.
2012-12-11 09:47:49 -08:00
Les Hill
9ce3032678
Recognize bar='baz' hash argument
2012-08-14 23:12:22 -07:00
Yehuda Katz
72e05d623c
Add support for @data variables
2012-07-05 22:43:05 -07:00
tomhuda
0afc8b58d2
Clean up parser tests and AST printer
2012-05-28 19:06:26 -07:00
kpdecker
aaec001931
Split the tests into compiler and vm tests
2011-07-30 15:26:21 -05:00
kpdecker
3d9e5070f5
Move mismatched block test from quint to parser tests.
2011-07-30 15:25:25 -05:00
tomhuda
1482f1ae72
Add BOOLEAN support
2011-06-01 22:57:22 -07:00
tomhuda
0f78345d0c
Add support for INTEGER expressions
2011-06-01 22:33:48 -07:00
Yehuda Katz
3e5bc84058
Merge pull request #69 from rgrove/allow-hyphens.
...
Allow ids to contain hyphens. Fixes #36 .
2011-05-03 19:01:37 -07:00
Ryan Grove
b324d002ca
Allow ids to contain hyphens. Fixes #36 .
...
Previously, a mustache like {{foo-bar}} would generate a
parse error, which was a departure from the behavior of
other Mustache implementations.
2011-04-28 22:30:21 -07:00
Ryan Grove
aba636ec38
Support multi-line comments.
...
{{!
Like this.
}}
2011-04-18 16:08:20 -07:00
tomhuda
ca9b9671a5
Add Hash arguments to simple mustaches (TODO: add Hash args to block helpers)
2011-03-04 00:11:03 -08:00
tomhuda
e0aa705f71
Add support for hash args in the tokenizer and parser
2011-03-03 21:33:28 -08:00
wycats
f205cec745
Finish compatibility with the old handlebars:
...
* foo"bar" is an invalid param
* {{foo}}bar{{/baz}} is invalid
* fix a number of issues with inverse sections
* add partials
2010-12-03 16:49:04 -05:00
wycats
c89ecf80a5
Inverse should really be its own node, as it has totally different runtime semantics
2010-12-03 01:10:14 -05:00
wycats
8f6f3051e6
Add support for inverted sections in the parser
2010-12-03 00:54:18 -05:00
wycats
762329913d
Fix a number of outstanding issues:
...
* {{}} 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)
2010-12-02 01:13:24 -05:00
wycats
b401fc388b
Test the parser, and clean up ID having multiple parts
2010-11-25 23:32:03 -08:00