kpdecker
31f7c25a8f
Use ~ rather than () for whitespace control.
2013-10-14 22:50:50 -05:00
kpdecker
1de6cee1b2
Load strip flags from lex stream
2013-10-14 22:50:50 -05:00
kpdecker
4e4920cc78
Add strip token parsing to lexer
2013-10-14 22:50:50 -05:00
kpdecker
d5544d8969
Fix whitespace
2013-10-14 22:50:50 -05:00
kpdecker
30384789d2
Lookahead control classes
2013-10-14 22:50:49 -05:00
kpdecker
0cc6e270f9
Pass open token to MustacheNode for flag parsing
2013-10-14 22:50:12 -05:00
Daniel Marcotte
468fa8b6dd
Fix "\\" escaping
...
Previously, "\\{{foo}}" would only result in the desired "\fooValue" if
it was at the beginning of the file or immediately after a close stache.
2013-10-13 09:03:02 -04:00
kpdecker
fbf8f134fa
Generate parser as es6 module
2013-10-01 00:12:39 -05:00
kpdecker
4f5c05ffe9
Simplify inverse only block case
2013-07-30 11:08:46 -05:00
kpdecker
03310df95e
Add strip lex helper method
2013-07-29 21:37:25 -05:00
kpdecker
3bc7d7b998
ID lexer control class
2013-07-29 21:30:56 -05:00
kpdecker
dcbc3a55a4
Prevent nonsensical root {{^}}
2013-07-24 23:50:12 -05:00
kpdecker
497515c02f
Remove braces on single line lex statements
...
Resolves a parsing issue in the 0.4 branch of jison.
2013-07-24 23:43:56 -05:00
kpdecker
117239ca7c
Use ebnf iteration/optional inMustache
2013-07-24 23:39:33 -05:00
kpdecker
c373d1c6d4
Use ebnf optional for partial path
2013-07-24 23:38:45 -05:00
kpdecker
df7a3fb8c0
Use ebnf iteration for hash production
2013-07-24 23:37:43 -05:00
kpdecker
199f3984c6
Use param production for hash value
2013-07-24 23:36:32 -05:00
kpdecker
f9ed0d3085
Use arrow syntax for bnf
2013-07-24 21:57:30 -05:00
kpdecker
58a0b4f17d
Require matching braces in escaped expressions
...
Fixes #437
2013-05-29 15:30:50 -04:00
kpdecker
da2aabe7bd
Allow ID, STRING, or INTEGER for partial name
...
Fixes #519
2013-05-29 10:46:28 -04:00
kpdecker
503e32208b
Improve tracking of original path values
2013-05-27 19:47:17 -04:00
kpdecker
822a8911ec
Add support for complex ids in @data references
2013-05-27 14:40:52 -05:00
kpdecker
c1020a0130
Add unicode support for ID tokens
...
Fixes #433
Fixes #469
2013-05-27 11:56:28 -05:00
James Gorrie
f5fe6d0bf6
Allowed for points to be in partial path name
2013-05-17 16:58:34 +01:00
kpdecker
85dd39427b
Add regex escapes
2013-05-10 01:35:25 -05:00
Kevin Decker
af3501636c
Merge pull request #462 from broady/master
...
Fix support for Rhino
2013-04-06 13:48:47 -07:00
kpdecker
ec5882a31a
Merge branch 'master' of github.com:jpfiset/handlebars.js into jpfiset-master
2013-04-06 15:18:30 -05:00
kpdecker
9e4b59e815
Add support for \\{ escapes
...
Fixes #456
2013-03-31 16:27:34 -05:00
Chris Broadfoot
e4a0ac4b04
Fix Rhino support
2013-03-04 16:08:00 -08:00
Jean-Pierre Fiset
681f1a6396
Allow colon characters in identifiers
...
Issue #460
2013-03-04 13:33:13 -05:00
Jean-Pierre Fiset
bf30bf9115
Allow accessing properties in current context using paths. This is to
...
avoid name collisions with registered helper functions.
Issue #458
2013-03-04 13:25:00 -05:00
kpdecker
75a4f0d931
Negative number literal support
...
Fixes #422
2013-02-15 20:22:11 -06:00
kpdecker
3cac2672d0
Use jsmodule for jison parser
...
Removes unnecessary commonjs code generated for the parser. This reduces
the size of the parse by about 700bytes and should resolve lookup issues
with browserify and other static analysis tools. See #220
2013-01-13 15:34:27 -06: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
Yehuda Katz
a927a9b0ad
Add block comment syntax:
...
{{!-- can contain
{{handlebars expressions}} --}}
2012-10-15 13:51:53 -04:00
Les Hill
a1c9acb8b1
Escaped single quotes in hash arguments
2012-09-22 08:09:33 -07:00
tomhuda
5a6e4f1ddd
Fix repeated delimiter escaping
2012-09-12 20:44:48 -07: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
175c6fae0f
More cleanup
...
* Make block and inverse use the main helper path
* Eliminate separate inverse AST node
2012-05-28 17:00:41 -07:00
Peter Wagenet
0b97fea56f
Fixed error in lexer
2012-02-08 20:49:50 -08:00
Peter Wagenet
2ea95ca08d
Fixed whitespace and semi-colons
2012-02-08 20:49:49 -08:00
Yehuda Katz
c79c761460
Add support for escaping mustaches
2011-12-27 17:04:59 -08:00
Yehuda Katz
932e2970ad
Realign lexer actions
2011-12-27 01:23:28 -08:00
Yehuda Katz
373d10edb1
Literal square-bracket path segments cannot have ] in them. TODO: Allow escaped path segments.
2011-12-27 01:21:53 -08:00
Chris Broadfoot
f6070f0084
Fix support for Rhino
2011-12-20 10:43:37 +11:00
Mike Moulton
42e31ef6db
Escaping a '/' in the ID regex. This was preventing handelbars.js from loading in Rhino.
2011-11-22 22:46:29 -08:00
Alan Johnson
fc84308cc9
Got simple literal expressions added into paths.
2011-09-02 09:04:41 -04:00