kpdecker
247babbe1a
Empty hash literal output
2013-01-19 12:15:43 -06:00
kpdecker
b1ea697b7d
Inline foundHelper lookup
2013-01-19 11:39:23 -06:00
tomhuda
9453c6d9d2
Update version
2013-01-18 17:13:40 -08:00
tomhuda
ce82bef6f1
Boolean("false") === true
2013-01-18 16:42:27 -08:00
tomhuda
cd9895061b
Must pop the stack extra for hashes
2013-01-18 15:37:09 -08:00
Yehuda Katz
ccd6a22ea5
Add support for getting types in string mode
...
This makes it possible to determine whether an
argument was passed as a string or as a path
when implementing helpers in string mode.
2013-01-16 22:43:25 -08:00
kpdecker
24fc3a2288
Prevent write on all depth variables
2013-01-13 23:43:29 -06:00
kpdecker
8961298859
Prevent context overwrite by replaceStack
...
Fixes #408 .
2013-01-13 22:35:03 -06:00
kpdecker
4f54f62abc
Remove duplicate assignment
2013-01-13 22:31:42 -06:00
kpdecker
3396814797
Merge branch 'master' of github.com:wycats/handlebars.js
2013-01-13 17:01:45 -06:00
Kevin Decker
16f2bf8f9b
Merge pull request #400 from lushchick/master
...
Removed unnecessary semicolon to pass JSHint for compiled code
2013-01-13 14:01:46 -08:00
kpdecker
5f56d6582f
Simplify isEmpty
2013-01-13 15:53:06 -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
Andrey Lushchick
e9fe73d7ab
Removed unnecessary semicolon, which is needed to pass JSHint for compiled code
2012-12-27 14:10:23 +02:00
Yehuda Katz
8df8488947
Merge pull request #347 from spikebrehm/master
...
Makes Handlebars.log available in both builds and fleshes out `log` helper.
2012-12-23 21:06:57 -08:00
Yehuda Katz
bf4c813db0
Merge pull request #389 from leshill/partial_names
...
Partials can be paths
2012-12-23 20:29:36 -08:00
Yehuda Katz
070e12f76f
Merge pull request #390 from eastridge/master
...
Make {data: true} a default compile option
2012-12-23 20:21:36 -08:00
Yehuda Katz
9385666e08
Get a better error for compile(falsy)
2012-12-23 20:15:18 -08:00
Ryan Eastridge
12f160fb31
Add data = true as default option
2012-12-13 11:42:18 -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
Tommy Messbauer
db975b42a0
Merged upstream master and ran unit tests
2012-11-26 10:26:15 -06:00
Tommy Messbauer
7963218495
Factory update with tabs to spaces.. sorry :(
2012-11-26 09:39:08 -06:00
Peter Wagenet
39832c0633
Fix handling of Errors in Chrome
2012-11-02 10:39:49 -07:00
Spike Brehm
2676efb222
overzealous approach to implmenting Handlebars.logger.log and 'log' helper.
2012-10-20 15:26:57 -07:00
Ross Hadden
9589ab8949
Implemented ability to iterate over objects, ala for-in.
...
Also added the 'key' key to looped objects.
My goal is to make this {{@key}}, but am still working on it.
I would also like to unobtrusively make @key or @index work for arrays.
2012-10-15 10:27:56 -04:00
Tyson Tate
42120d1177
Bind functions to the context properly.
...
The regression was introduced in 1.0.rc.1.
This fixes issue #317 .
2012-09-19 16:03:46 -07:00
Yehuda Katz
26b1438f20
Merge pull request #198 from codekitchen/master
...
properly handle ampersands when HTML escaping
2012-09-14 20:48:40 -07:00
Yehuda Katz
b83e5e0ea6
Merge pull request #297 from karlwestin/fix-reverse-array
...
Fixed an issue where {{#array}} {{/array}} wouldn't pass in an @index data variable
2012-09-14 20:26:11 -07:00
Kiall Mac Innes
967c69b2da
Ensure plain text partials supplied to registerPartials are compiled using data: true if necessary.
2012-09-13 15:04:34 +01:00
Tommy Messbauer
eccc7c35ca
Finished factory pattern
2012-08-29 15:07:15 -05:00
Tommy Messbauer
7c4813b417
Commiting initial factory code
2012-08-29 12:48:22 -05:00
Karl Westin
acc04c2826
Fixed an issue where {{#array}} {{/array}} wouldn't pass in an
...
@index data variable.
I just thought it would be nice to add in this feature. I'm using
the two of these a little interchangable, so if other people are doing
that as well, it might help usability.
2012-08-27 12:55:55 -07:00
kpdecker
dc0426d836
Merge with upstream/master
2012-08-21 12:49:40 -05:00
kpdecker
4ffe1b8e5a
Fix handling of this parameters in helpers
...
Fixes issue introduced in 727eb26cb6
2012-07-30 21:40:25 -05:00
kpdecker
fc99d90337
Fix loading under node
2012-07-23 13:48:27 -05:00
tomhuda
f79af6bfa3
Merge branch 'master' of github.com:wycats/handlebars.js
2012-07-12 10:07:10 -07:00
Yehuda Katz
36b242a710
Document lookupData
2012-07-05 23:10:39 -07:00
Yehuda Katz
659be5a690
Reduce duplication
2012-07-05 23:08:57 -07:00
Yehuda Katz
46c04fa71e
Make deep @data trigger the data option
2012-07-05 23:05:55 -07:00
Yehuda Katz
5e8be14d78
Add support for @index in #each
2012-07-05 22:43:50 -07:00
Yehuda Katz
72e05d623c
Add support for @data variables
2012-07-05 22:43:05 -07:00
Nicolas Chambrier
7a393a972b
FIX global leak
2012-06-25 17:38:27 +03:00
tomhuda
92b6c1401a
Bump version to RC1
2012-05-28 20:05:55 -07:00
tomhuda
0afc8b58d2
Clean up parser tests and AST printer
2012-05-28 19:06:26 -07:00
tomhuda
1082ec2414
Fix a bug where registers were shared
2012-05-28 19:06:08 -07:00
tomhuda
727eb26cb6
Remove unneeded code and add docs
...
There were a few operations that are no longer
needed, so remove them. Also document all
operations.
2012-05-28 17:35:21 -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
tomhuda
3486b530be
Disambiguate more ahead of time
2012-05-28 14:19:48 -07:00
tomhuda
bc5efc1767
Remove unneeded binary opcode stuff
...
It turns out that we don't need to store the
opcodes in a compact way, so don't bother.
2012-05-28 13:28:51 -07:00
Yehuda Katz
90adaa3cc8
Continue work on cleaning up helpers
2012-05-28 13:03:22 -07:00