diff options
author | Yehuda Katz <wycats@gmail.com> | 2013-07-24 05:03:27 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2013-07-24 05:03:27 +0000 |
commit | f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62 (patch) | |
tree | 8e92df6cccab8ff4da78c11d90d4e534a19374b8 /spec/helpers.js | |
parent | da130f7745fc338d7ea31c60d9954ab6e0e1511a (diff) | |
download | handlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.zip handlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.tar.gz handlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.tar.bz2 |
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.
Diffstat (limited to 'spec/helpers.js')
-rw-r--r-- | spec/helpers.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/helpers.js b/spec/helpers.js index 9fb32e6..fad6e5a 100644 --- a/spec/helpers.js +++ b/spec/helpers.js @@ -176,11 +176,15 @@ describe('helpers', function() { var helpers = Handlebars.helpers; try { Handlebars.helpers = {}; - Handlebars.registerHelper({ - 'if': helpers['if'], - world: function() { return "world!"; }, - test_helper: function() { return 'found it!'; } - }); + Handlebars.registerHelper('if', helpers['if']); + Handlebars.registerHelper('world', function() { return "world!"; }); + Handlebars.registerHelper('test_helper', function() { return 'found it!'; }); + + //Handlebars.registerHelper({ + //'if': helpers['if'], + //world: function() { return "world!"; }, + //test_helper: function() { return 'found it!'; } + //}); shouldCompileTo( "{{test_helper}} {{#if cruel}}Goodbye {{cruel}} {{world}}!{{/if}}", |