Commit Graph

  • 299a0e81e3 data is passed to block helpers tomhuda 2011-02-11 20:11:23 -08:00
  • e719f79259 Update Gemfile to use the released version of the ruby racer tomhuda 2011-02-11 17:02:41 -08:00
  • 88e7003331 * Added a few public API methods to JavaScriptCompiler.prototype, so it can be subclassed. * made it possible to define an alternate name lookup scheme (so that {{foo}} does not have to be context.foo, but can instead be something like context.get('foo')) * made it possible to substitute an alternate buffer instead of the default empty String and override how the compiled template appends to the buffer * Added the concept of template-local data. In order to enable template-local data, pass true as the second parameter to the template compiler. Then, pass in the data as the fourth parameter (context, helpers, partials, data). These signatures may change before the 1.0 release. tomhuda 2011-02-11 17:02:26 -08:00
  • 2eb1b30870 Merge branch 'master' of github.com:wycats/handlebars.js Alan Johnson 2011-02-10 06:27:12 -05:00
  • 40dd2c9750 Updated if helper - missed it in the last cleanup. It no longer supports methods as arguments. Alan Johnson 2011-02-10 06:27:03 -05:00
  • 4362336656 Fix broken README information wycats 2011-02-08 15:01:28 -08:00
  • aaaafb4400 Makes Handlebars work in contexts without a global object (node) wycats 2011-02-08 14:31:09 -08:00
  • 4d501b6613 Need to require timeout wycats 2011-02-07 19:41:35 -08:00
  • 0ea89d2c2c Get specs up to snuff wycats 2011-01-30 12:21:18 -08:00
  • ac4d34dbe3 Backed out function helpers. Alan Johnson 2011-01-25 21:21:57 -05:00
  • e6b14fa934 Put null byte on content match instead of [^] Alan Johnson 2011-01-25 21:13:39 -05:00
  • 116a8a5202 Merge branch 'master' of https://github.com/gixug/handlebars.js into gixug-master Alan Johnson 2011-01-25 19:59:34 -05:00
  • 9349d6df0e Added test for undefined blocks - didn't matter though. Alan Johnson 2011-01-25 19:58:39 -05:00
  • ea553b511b IE 7 hates trailing commas David Stone 2011-01-25 10:24:53 -08:00
  • ada5a95f9c improved "with" and "each" helpers to support function as argument Raimonds Simanovskis 2011-01-23 11:55:48 +02:00
  • 65b421ee4d Merged Alan Johnson 2011-01-22 10:30:44 -05:00
  • dd4c03d0e3 IE doesn't like negated empty character classes. David Stone 2011-01-19 16:22:28 -08:00
  • 8ab1ffae17 Use prototype toString method to avoid native types being returned. Alex Stupka 2010-12-15 17:17:50 -05:00
  • b7c649617b noop should return an empty String, not undefined wycats 2011-01-11 23:16:03 -08:00
  • fa5853079f arrrrg wycats 2011-01-10 16:00:09 -08:00
  • ce1ed0dc4a Fix for shitty JS regex engines. wycats 2011-01-10 15:47:07 -08:00
  • 354d61d3c8 Updating gitignore to ignore .rvmrc files. Alan Johnson 2010-12-29 22:48:51 -05:00
  • 1974aa5277 If the partial is not found, an exception should be thrown wycats 2010-12-29 19:23:23 -08:00
  • c19f06b4ee Updated semantics wycats 2010-12-29 19:20:03 -08:00
  • e20c57c9b2 Move compile to the right spot wycats 2010-12-29 19:09:55 -08:00
  • 5170e1459f Don't need runtime anymore for normal operation wycats 2010-12-29 18:34:13 -08:00
  • bf6c74aa83 Restructure things more simply wycats 2010-12-29 18:21:43 -08:00
  • 9e77799e87 Housekeeping wycats 2010-12-28 15:49:08 -08:00
  • 9a1d7c018d Make {{#if foo}} handle empty Arrays wycats 2010-12-28 15:47:15 -08:00
  • 79f6b35258 Add benchmarks wycats 2010-12-28 15:47:03 -08:00
  • 0da3065987 Clean up after-effects of Jison fix wycats 2010-12-28 15:46:26 -08:00
  • b319730031 improved "if" helper to support function as argument Raimonds Simanovskis 2010-12-28 13:37:42 +02:00
  • 72fa62529e Merge branch 'master' of https://github.com/zaach/handlebars.js into zaach-master wycats 2010-12-27 13:02:20 -08:00
  • 16ed2cd3f1 Refactoring and performance enhancements on the VM compiler wycats 2010-12-21 09:47:27 -08:00
  • d87ae129c0 Add a #with helper wycats 2010-12-21 09:47:01 -08:00
  • 8fccd21283 escapeExpressions should return "" for falsy values wycats 2010-12-21 09:46:50 -08:00
  • e0246d7dfc #each should handle undefined or null values wycats 2010-12-21 09:46:22 -08:00
  • fc0d721b96 Use pluggable logger rather the puts wycats 2010-12-21 09:45:59 -08:00
  • 355565bb04 Fix missing whitespaces in error message wycats 2010-12-21 09:39:05 -08:00
  • faea35f8fa Merging with latest master Zach Carter 2010-12-20 02:25:25 -05:00
  • 8f502ffbe7 Add #each and #if built-in helpers for more readable iteration and conditionals wycats 2010-12-19 00:06:55 -08:00
  • f4ae0c27fe Allow reserved words to be used without slowing down most operations in browsers with faster foo.bar vs. foo['bar']. wycats 2010-12-19 00:06:30 -08:00
  • b418ef6eb2 Add optimized compiled version of handlebars, which should be significantly faster. Use Handlebars.VM.compile instead of Handlebars.compile to use the optimized version. wycats 2010-12-18 23:27:34 -08:00
  • e15d675a64 Everything is working now on the new VM except for partials and inverse sections wycats 2010-12-15 23:42:53 -08:00
  • 42414baa5c Add new visitor.js file to build dependencies Zach Carter 2010-12-14 19:18:35 -05:00
  • 820504bbd5 Use 'spec' task instead of 'test'. Zach Carter 2010-12-14 19:10:41 -05:00
  • 97536f897e Switch to Jison's lexer. Zach Carter 2010-12-14 19:07:05 -05:00
  • ec948c7382 Small restructuring. Have I mentioned how much I hate having to write modules that work in both CommonJS and the browser? wycats 2010-12-12 13:33:17 -08:00
  • 57e72c9fd2 Added build instructions wycats 2010-12-11 19:44:11 -08:00
  • 00fdfc306d Add README wycats 2010-12-11 19:42:04 -08:00
  • eefd0deb6d Merge branch 'master' into rewrite wycats 2010-12-11 19:11:56 -08:00
  • 9fcd85bbac Allow helperMissing to apply to simple mustaches (paves the way to support things like link_to in a Rails context) wycats 2010-12-11 18:43:58 -08:00
  • 62cea5b05e Make sure rspec returns the right line number from library files wycats 2010-12-11 18:29:05 -08:00
  • 215754c268 Make helperMissing a built-in feature wycats 2010-12-11 18:28:37 -08:00
  • 5097c18912 Make it possible to register helpers and partials and then skip passing in the helpers or partials later wycats 2010-12-11 18:10:56 -08:00
  • fdc8e425d0 Improve compiling infrastructure, and restore a bit of duplication in spec_helper to make debugging easier in test failures wycats 2010-12-11 18:10:26 -08:00
  • 35b4d9fd01 linting wycats 2010-12-04 22:26:23 -05:00
  • 4db1abcd74 Fix up the compilation process wycats 2010-12-04 17:35:36 -05:00
  • f205cec745 Finish compatibility with the old handlebars: wycats 2010-12-03 16:49:04 -05:00
  • 9a6f77af56 A few more lingering bugs: wycats 2010-12-03 01:39:00 -05:00
  • c89ecf80a5 Inverse should really be its own node, as it has totally different runtime semantics wycats 2010-12-03 01:10:14 -05:00
  • 8f6f3051e6 Add support for inverted sections in the parser wycats 2010-12-03 00:54:18 -05:00
  • 87b526df27 Allow empty blocks. wycats 2010-12-02 01:27:41 -05:00
  • 762329913d Fix a number of outstanding issues: wycats 2010-12-02 01:13:24 -05:00
  • 7f8a323efe Add nicer header and title to QUnit test page Jason Davies 2010-11-29 21:39:35 +00:00
  • ee388dc149 Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2010-11-29 15:05:11 +00:00
  • 9846fb8a28 Got Qunit tests running through RSpec and fixed a bunch of bugs... 33 fails from the original suite to go wycats 2010-11-28 17:36:05 -08:00
  • 454d0a85b7 Add initial support for blocks wycats 2010-11-26 23:45:38 -08:00
  • 3b0970d8aa Start working on the runtime wycats 2010-11-25 23:32:32 -08:00
  • b401fc388b Test the parser, and clean up ID having multiple parts wycats 2010-11-25 23:32:03 -08:00
  • f8b245896d Make the ID node capable of handling paths TODO: handle invalid paths in the tokenizer or parser TODO: invalidate "{{ foo/ bar }}" wycats 2010-11-25 16:12:50 -08:00
  • 7d0204bf9f Add some more tests, and properly handle errors across the boundary in tests wycats 2010-11-25 16:09:42 -08:00
  • 4624eddf0b The tokenizer shouldn't get into an infinite loop in certain termination conditions wycats 2010-11-25 12:46:25 -08:00
  • 3388962225 Fix the lexer to handle Strings with escaped quotes wycats 2010-11-25 11:54:09 -08:00
  • 83fa737e04 Add tests for the tokenizer using RubyRacer wycats 2010-11-25 11:53:41 -08:00
  • 4b2e543d2e Remove node dependency from handlebars.js wycats 2010-11-25 11:52:35 -08:00
  • 7100563373 Add a Gemfile for testing wycats 2010-11-25 11:51:50 -08:00
  • d97bc591a2 Restructure files to make more sense in a non-CommonJS world. wycats 2010-11-25 02:49:08 -08:00
  • 38f8ae84fe Explain something in the lexer wycats 2010-11-25 00:58:42 -08:00
  • 85fa2cb65f Initial commit. Note that I'm using CommonJS modules and node purely to help me develop this. If this ends up being useful, I will likely distribute the entire package as a single JS file for easier consumption in the browser. wycats 2010-11-25 00:48:55 -08:00
  • d2b8e0296d Got rid of log messages for debugging. Alan Johnson 2010-11-20 22:03:00 -05:00
  • 4b4c13f40d More work on context object. Just one more failing test. Alan Johnson 2010-11-20 21:40:35 -05:00
  • aa976283db Just two more failing tests on the new constext object rewrite. Alan Johnson 2010-11-20 17:08:06 -05:00
  • 38d2be4cc0 Working on getting context object working. Alan Johnson 2010-11-20 15:26:20 -05:00
  • f1e6acf628 Revert "Make it possible for helpers to let downstream helpers know what the path to the current object is" wycats 2010-11-19 11:59:44 -08:00
  • 71dffd95c7 Make it possible for helpers to let downstream helpers know what the path to the current object is wycats 2010-11-17 18:34:37 -08:00
  • 766497bb55 Add support for multiple params and String literals wycats 2010-11-17 16:12:24 -08:00
  • 75f2c8e3ce Fix indentation issue wycats 2010-11-17 13:35:26 -08:00
  • a15ae62460 Whitespace wycats 2010-11-17 13:32:04 -08:00
  • 54948aad6f Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2010-11-11 23:28:01 +00:00
  • c54cadcf8f Fixed strange stack issue. Alan Johnson 2010-11-05 15:57:59 -04:00
  • 82529f5051 Fixed issue where stack isn't passed into partials and also fixed null issue in complex expressions. Alan Johnson 2010-11-05 13:56:27 -04:00
  • 45c961afc8 Fixed memoization collision with built in methods. Thanks alphabj\! Alan Johnson 2010-10-22 16:10:12 -04:00
  • 5e18cb6298 Remove extraneous breaks Jason Davies 2010-10-19 12:25:47 +01:00
  • ad50cb7efe Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2010-10-19 12:25:05 +01:00
  • ed6b999623 Remove backslash escapes from default escaping Jason Davies 2010-10-19 12:24:43 +01:00
  • 198fa4b3c3 Getting rid of some debug output. Alan Johnson 2010-10-13 16:42:44 -04:00
  • 1d72f1bea4 Switched to using eval expression on basically all expressions. Alan Johnson 2010-10-13 16:41:19 -04:00
  • 3517710578 One more readme tweak - last one, I promise. Alan Johnson 2010-10-12 22:24:02 -04:00
  • 2114688c1f Updated readme. Alan Johnson 2010-10-12 22:23:07 -04:00