kpdecker
e75839b185
Break safe string out into standalone module
2013-10-01 21:18:10 -05:00
kpdecker
6a23391a9a
Break exception class out into a standalone module
2013-10-01 21:14:18 -05:00
kpdecker
80b748ad3e
Fix global Handlebars references
2013-10-01 00:13:48 -05:00
kpdecker
27d9010974
Update logger for es6 modules
2013-09-30 23:52:44 -05:00
kpdecker
1e8409efa6
Fix merge errors
2013-09-02 18:25:03 -05:00
kpdecker
cb0c45b29f
Merge branch 'master' into es6-modules
...
Conflicts:
Gruntfile.js
Rakefile
dist/handlebars.js
dist/handlebars.runtime.js
lib/handlebars.js
lib/handlebars/base.js
lib/handlebars/runtime.js
lib/handlebars/utils.js
package.json
2013-09-02 18:19:18 -05:00
kpdecker
192887cedc
Merge commit '87b5d4ee61605b026506e92c9e8873d867c5f150' into es6-modules
...
Conflicts:
dist/handlebars.js
dist/handlebars.runtime.js
lib/handlebars/base.js
lib/handlebars/utils.js
2013-09-02 16:19:28 -05:00
kpdecker
623fdad59f
Simplify falsy handling
2013-08-24 22:20:23 -05:00
kpdecker
6e6acaac0d
Unify isFunction/isArray handling
2013-08-24 22:20:12 -05:00
kpdecker
4c02d3027c
Optimize partial helper/partial merge handling
2013-08-24 19:52:22 -05:00
kpdecker
0af54b1142
Use extend rather than prototype for createFrame
...
Using prototype has a large performance impact for the common case of a
sparse set of private variable data points. Rather than incurring the
overhead of creating and walking the prototype tree for this, performing
an extend by copy.
2013-08-24 12:10:10 -05:00
kpdecker
eb1cda6fdc
jshint
2013-08-24 12:06:25 -05:00
kpdecker
564afab278
Merge branch 'master' of github.com:artiee/handlebars.js into artiee-master
2013-08-15 10:24:28 -05:00
Parker Selbert
d02c90c0fb
Use the ('' + string) form of string coercion
...
Using string.toString() will throw errors in current versions of Safari
(6.0.5 currently) for some values. The error is a particularly cryptic
"Type Error: type error", which no indication as to the value that
caused the error. By using the '' + string form of coercion the error
doesn't seem to occur.
Depending on the browser used there is a sizable performance increase
in using the concatenation form of coercion. In instances where there
is not a performance improvement (i.e. Firefox), the speed difference
is entirely negligable. See: http://jsperf.com/convert-to-string-bj/3
2013-08-14 22:11:59 -05:00
Tuomas Palenius
db47593e34
Fix #597 . If-helper doesn't anymore consider 0 as falsy value.
2013-08-15 06:05:11 +03:00
kpdecker
9ca4f9c606
Remove unused var
2013-07-30 11:08:26 -05:00
Yehuda Katz
5f664dd78b
Make the Handlebars environment into an object
...
The idea is that the environment wraps up the mutable stuff in
Handlebars (like the helpers) and that you could theoretically create a
new one at any time and pass it in to Handlebars.template.
Every test makes a new environment and uses it in template compilation.
2013-07-26 16:50:37 +00:00
Yehuda Katz
f5c8484ea0
Further progress towards modularization.
...
At this point, I have only 2 fails in the Node build, but I'm doing a
bunch of manual stuff locally and still have a bunch of hacks.
2013-07-24 05:03:27 +00:00
Yehuda Katz
da130f7745
Building an AMD file
2013-07-16 19:10:37 +00:00
Yehuda Katz
12f8299eb2
More modularization
2013-07-02 18:57:28 +00:00
Yehuda Katz
88ee4757e7
Initial work on ES6 modules
2013-07-01 13:59:58 -07:00
kpdecker
c3ff573184
Break JavascriptCompiler into standalone file
2013-06-03 23:27:35 -05:00
kpdecker
6174c3b6f8
Remove unnecessary function
2013-06-02 23:36:34 -05:00
Kevin Decker
caded1d06b
Merge pull request #537 from spikebrehm/support-all-the-modules
...
Support AMD and CommonJS out of the box
2013-05-31 12:37:16 -07:00
kpdecker
f63b226b76
Update to 1.0.0 final
2013-05-31 14:16:45 -04:00
kpdecker
16fd601a5c
Merge global and passed helpers and partials
2013-05-31 13:12:06 -04:00
kpdecker
d7b345b2da
Allow execution of helpers on the context
...
Fixes #285
2013-05-30 15:47:30 -04:00
kpdecker
c540d7186a
Allow function arguments to with and each
...
Via @mcdan
Fixes #239
2013-05-29 12:23:55 -04:00
kpdecker
293672432b
improve error message on missing helper
...
Via @stefanpenner
Fixes #523
2013-05-29 10:57:48 -04:00
kpdecker
da2aabe7bd
Allow ID, STRING, or INTEGER for partial name
...
Fixes #519
2013-05-29 10:46:28 -04:00
kpdecker
3ddbc5237f
Protect from object prototype modifications
...
Fixes #534
2013-05-28 17:03:07 -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
Spike Brehm
efca3c8ef5
Support AMD and CommonJS out of the box
2013-05-27 11:22:25 -07:00
kpdecker
533be694b5
Use better variable name
2013-05-21 13:12:11 -05:00
kpdecker
ddc4d31861
Rev to rc4
2013-05-13 23:07:29 -05:00
Tommy Messbauer
090ee7c59a
added local pointer to handlerbars.utils to allow this to browserify properly for IE
2013-05-09 17:17:34 -05:00
Kevin Decker
075fdb8ac4
Merge pull request #454 from leshill/fix_string_mode_contexts
...
Add contexts for string mode hash values
2013-04-07 17:21:40 -07:00
kpdecker
4429ffa9f3
Allow multiple partial and helper registration
...
Fixes #369
2013-04-07 18:04:51 -05:00
kpdecker
0329c852bd
Merge branch 'program-metadata'
2013-04-07 12:29:54 -05:00
kpdecker
f6ff5c648b
Restore knownHelpersOnly throw
...
Fixes #302
2013-04-06 23:23:40 -05:00
kpdecker
12d68caa58
Allow compilation of empty string
...
Fixes #461
2013-04-06 23:17:39 -05:00
kpdecker
4d66d0c0a6
Escape unicode newlines in string literals
...
Fixes #375
2013-04-06 16:42:24 -05:00
kpdecker
671c07e699
Force toString in escapeExpression
...
Fixes #211
2013-04-06 14:46:04 -05:00
Les Hill
53de75927c
Add contexts for string mode hash values
...
Allows for evaluating hash parameters such as ../city in string mode.
2013-03-19 21:41:36 -07:00
Kevin Decker
21977633a0
Merge pull request #213 from thejohnfreeman/master
...
Block helper "with" should check for empty context
2013-03-13 19:54:26 -07:00
machty
519156138d
Added handlebars-source gemspec for sharing with 3rd party precompilation libs
2013-02-20 00:04:39 -05:00
kpdecker
baccdb4cfc
Add program metadata
...
Include program id and depth on the generated wrapper objects. This
allows helpers who are passed these objects to differentiate between
helpers for cases where they may want to cache the generated DOM
structure.
2013-02-17 04:27:42 -06:00
kpdecker
c95b3d6fc5
Create new options object for unless nesting
...
Fixes #343
2013-02-16 16:18:48 -06:00
kpdecker
d6f146f8a5
Fix #428 nested if else rendering
...
The program equality checker was not taking children into account
when determining equality, causing breakages under similar cases.
2013-02-16 16:18:17 -06:00