Commit Graph

  • 0788e5d83b Added note about handlebars-contrib. Alan Johnson 2010-10-12 22:22:25 -04:00
  • 295cfe5fd1 Fixed issue where using {{.}} as an expression could cause the fallback hash to be rendered instead, if {{.}} is empty. Alan Johnson 2010-10-12 21:54:10 -04:00
  • 7041b3a869 Got zero handling cleaned up a bit. Alan Johnson 2010-10-12 21:43:48 -04:00
  • f436c1d440 Added sammy.js link to readme, since they just added support for us as a template plugin (Thanks, Aaron!) Alan Johnson 2010-09-27 14:03:29 -04:00
  • e7d5e72a87 Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2010-09-27 17:38:41 +01:00
  • 7a8ef3ba78 Alan Johnson 2010-09-26 17:55:08 -04:00
  • 01273cf00d More README tweaks. Alan Johnson 2010-09-26 17:53:26 -04:00
  • 368f0210e2 Tweaked README. Alan Johnson 2010-09-26 17:47:44 -04:00
  • 4989f38ba2 Fixed bug where compiler was continuing to think it was looking at partials after the partial tag was done. Closes GH-14. Alan Johnson 2010-09-26 17:18:57 -04:00
  • f288a75e39 Added compiler cache and got rid of TODO file. Alan Johnson 2010-09-25 17:40:23 -04:00
  • 88d0ea90fc Switched empty block handling for expression blocks to use helperMissing.not. Alan Johnson 2010-09-25 16:42:59 -04:00
  • c1bcd72eb1 Reworked the way that expression work a good bit. They're a lot less error prone now. Alan Johnson 2010-09-24 22:26:10 -04:00
  • a07dae5d8e Fix disappearing backslash bug Jason Davies 2010-09-21 06:44:08 +08:00
  • 7fbf208f4b Tidied up docs a bit. Alan Johnson 2010-09-22 14:18:28 -04:00
  • 50e2034d54 Test cleanup. Alan Johnson 2010-09-22 14:07:02 -04:00
  • 81d45426e7 Merge branch 'master' of github.com:wycats/handlebars.js Alan Johnson 2010-09-22 14:06:37 -04:00
  • 961fa3f4a3 Failing test case for complex lookup in a helper which also has a nested template Martin Kleppmann 2010-09-23 00:47:18 +08:00
  • dab6729a37 More stack fixes. The context stack was being corrupted by nested blocks and expressions. Alan Johnson 2010-09-22 14:04:26 -04:00
  • ee03e971f7 Fixed small context stack bug. Alan Johnson 2010-09-22 13:42:55 -04:00
  • 57e990e6e0 Fix disappearing backslash bug Jason Davies 2010-09-20 23:44:08 +01:00
  • d374744223 Broke out test. Alan Johnson 2010-09-20 14:00:09 -04:00
  • 03cadf8e76 Fix exception when context value is empty string Jason Davies 2010-09-19 05:49:38 +08:00
  • 40e03aafee Made the new mismatched blocks error message a little bit easier on the eyes. Alan Johnson 2010-09-18 13:33:57 -04:00
  • 2291a038d8 Added unmatched block tag detection. Alan Johnson 2010-09-17 22:32:01 -04:00
  • e32ab0a527 Really need to write a pre-commit checker thingy that alerts me if console.log is anywhere in the code. Alan Johnson 2010-09-16 08:14:07 -04:00
  • 0f8593f163 Got empty blocks working. Alan Johnson 2010-09-16 08:09:27 -04:00
  • 5b5e686c0d Added license terms. Alan Johnson 2010-09-14 20:54:51 -04:00
  • 3c5703630c Got handleInvertedSection written up. Alan Johnson 2010-09-14 20:42:16 -04:00
  • 00abfd3164 Got handleExpression written up. Alan Johnson 2010-09-14 20:37:03 -04:00
  • 384ebf6373 Bundled up the block handling into a handleBlock function - means less code gen and more already jit-ed code, hopefully. Alan Johnson 2010-09-14 08:03:54 -04:00
  • c176892639 Updated todo. Alan Johnson 2010-09-13 22:05:17 -04:00
  • 75a1aa4a0d Added Handlebars.trim for IE compatibility. Alan Johnson 2010-09-13 21:31:57 -04:00
  • 281e45d6ba Got carriage returns working. Alan Johnson 2010-09-13 20:30:15 -04:00
  • ed5f10c282 Tweaked block helpers to wrap 'this' up in a context helper correctly. Alan Johnson 2010-09-13 08:54:29 -04:00
  • a4a46bd8c3 Added creating exports if it doesn't already exist so non-CommonJS environments will work ok. Alan Johnson 2010-09-11 21:00:06 -04:00
  • 7ff015fd5d CommonJS compatibility. Alan Johnson 2010-09-11 18:24:50 -04:00
  • b4bac7f4f9 Firefox compatibility fixes. Alan Johnson 2010-09-11 18:07:40 -04:00
  • 2c3b97bb66 Got detecting Arrays working in firefox. Alan Johnson 2010-09-11 09:48:17 -04:00
  • 6f35bf4e83 Got rid of erroneous log message. Alan Johnson 2010-09-11 09:37:54 -04:00
  • 0c3a1cf477 Fixed isFunction to make it work with firefox [xpconnect wrapped native prototype] Alan Johnson 2010-09-11 09:37:20 -04:00
  • 7267f54521 Escape all double quotes when escaping a string James Conroy-Finn 2010-09-10 19:18:21 +08:00
  • 6bfff5f97b Got helper functions to always receive a context as their first param. Alan Johnson 2010-09-09 20:29:49 -04:00
  • 40b1108b2e Got expressions that are helpers with arguments working. Alan Johnson 2010-09-09 20:13:08 -04:00
  • fee8b8c84e Got rid of compat template. Alan Johnson 2010-09-07 15:52:35 -04:00
  • c69d5f0943 Added info about submitting changes. Alan Johnson 2010-09-06 22:56:53 -04:00
  • 0767acc36c Added a readme file and made a few fixes that were discovered while writing it. Alan Johnson 2010-09-06 22:53:48 -04:00
  • 1a8036650b Added quick usage message to the compiler. Alan Johnson 2010-09-06 09:56:08 -04:00
  • 9770ffe4f3 Added compiler. Alan Johnson 2010-09-05 17:36:14 -04:00
  • 370fd4c165 Write a really dumb sample compiler. Alan Johnson 2010-09-05 17:19:35 -04:00
  • b2ae3c62f0 Updated TODO. Alan Johnson 2010-09-05 15:52:55 -04:00
  • 2065af7af5 Partials performance improvement. Alan Johnson 2010-09-05 15:48:19 -04:00
  • 57455e23fd Added basic performance test. Alan Johnson 2010-09-05 03:44:04 -04:00
  • 88e975d2b2 Got performance test stuff started. Alan Johnson 2010-09-03 23:11:29 -05:00
  • 222e810190 Got inverted blocks working. Alan Johnson 2010-09-03 08:41:32 -05:00
  • fa9603f121 Got test case for inverted sections written up. Alan Johnson 2010-08-23 22:02:30 -04:00
  • 598f333085 Got rid of some debugging output. Alan Johnson 2010-08-18 20:57:42 -04:00
  • a9c875e0a9 Got basic inverted sections working. Alan Johnson 2010-08-18 20:57:02 -04:00
  • 2a112fe07f Made progress on inverted sections. Functions almost work now, and expressions aren't far behind. Alan Johnson 2010-08-17 00:46:04 -04:00
  • 8f76f99663 Merge branch 'master' into inverted_sections Alan Johnson 2010-08-15 16:23:00 -04:00
  • dc318908d3 Updated TODO. Alan Johnson 2010-08-15 16:22:39 -04:00
  • cbc8153edb Merge branch 'master' of github.com:wycats/handlebars.js Alan Johnson 2010-08-15 16:22:04 -04:00
  • a04a8e792b Got partials to cache inside of fallback/partials itself and added an exception for when partials aren't defined. Alan Johnson 2010-08-15 16:21:49 -04:00
  • 135147173b Write tests for inverted sections. Alan Johnson 2010-08-15 16:10:26 -04:00
  • f0bb7b578a Alan Johnson 2010-08-13 04:57:39 -07:00
  • 467024d1e2 FTiny test tweak - quoted href of a link in one of the test templates, just because it was bugging me. Alan Johnson 2010-08-12 23:15:01 -04:00
  • 5bd5d4eed4 Fixed up an errant console.log. Alan Johnson 2010-08-12 23:13:04 -04:00
  • ad6a53e277 Got escaping of text working, I think. Alan Johnson 2010-08-12 23:12:26 -04:00
  • 57aadef7c1 Added test for a partial inside of a partial. Alan Johnson 2010-08-12 22:46:20 -04:00
  • ab757858a2 Marked partials off of the list. Alan Johnson 2010-08-12 21:29:50 -04:00
  • 4f1d6e92bd Added partials. Alan Johnson 2010-08-12 21:29:19 -04:00
  • be56661af1 Took escaping off of the TODO list. Alan Johnson 2010-08-08 18:02:32 -04:00
  • cd4d0453f2 Tested that safestrings don't get escaped. Alan Johnson 2010-08-08 18:01:42 -04:00
  • 792251f6c9 Added the new safestring type and a test for its implementation. Alan Johnson 2010-08-08 17:56:35 -04:00
  • d5d06c71f0 Added ability to specify unescaped items with &. Alan Johnson 2010-08-08 16:34:19 -04:00
  • 8a1dd118af Realized I goofed in one spot. Fixed\! Alan Johnson 2010-08-08 00:25:55 -04:00
  • a74794ba8d Got escaping working, as well as avoiding escaping with {{{ Alan Johnson 2010-08-08 00:14:03 -04:00
  • 5459b0ee3a For real this time wycats 2010-08-07 19:50:24 -07:00
  • 630978c15d Added TODO before 1.0 wycats 2010-08-07 19:48:49 -07:00
  • c907e80d15 Add a comment and reorganize a few things wycats 2010-08-07 19:27:10 -07:00
  • a9dfa3605c Refactored some stuff. Alan Johnson 2010-08-07 21:46:41 -04:00
  • e373f08bd1 Bit of cleanup on the context code. Alan Johnson 2010-08-07 16:23:01 -04:00
  • ccbb241ac9 Took out a console.log that was hanging around. Alan Johnson 2010-08-06 00:36:02 -04:00
  • 13ceb010ba Using this.__get__ inside of functions called as expressions now works. Alan Johnson 2010-08-06 00:34:03 -04:00
  • 28d699233a Added support for expressions that reference functions. Alan Johnson 2010-08-05 23:59:59 -04:00
  • 03d06fa70a Got rid of some debugging output. Alan Johnson 2010-08-05 23:41:24 -04:00
  • 21d779bb54 Got rid of failing test. I'll take another stab some other time. Alan Johnson 2010-08-04 23:40:15 -04:00
  • 4950beea1c Made path parser reusable so that we can use it inside of __get__. Alan Johnson 2010-08-04 22:18:40 -04:00
  • 54838cd90c Added support for this keyword in paths. Alan Johnson 2010-08-04 21:54:57 -04:00
  • 4569684998 Updated the path parsing in lookupFor to be a bit smarter and added parse errors for some of the more tricky ones. Alan Johnson 2010-08-03 23:26:40 -04:00
  • 327744afaf Added parse errors for trying to jump out of context after moving into context in path expressions. Alan Johnson 2010-08-03 22:49:36 -04:00
  • 5d08ed629d Got accessing data in nested objects working using parent/child syntax. Alan Johnson 2010-08-03 01:59:39 -04:00
  • 135e7c34cd Got more deeply neested context references working and tested. Alan Johnson 2010-08-03 01:43:35 -04:00
  • 7e036fb952 Working on test for ../../omg Alan Johnson 2010-08-03 00:05:24 -04:00
  • edb6b238d8 Set stack to not be global. Alan Johnson 2010-08-02 23:44:06 -04:00
  • acfef657d4 Added basic nested context lookups and context stack. Alan Johnson 2010-08-02 23:29:37 -04:00
  • ae98f233f1 Add fallback hash (useful for a helper Hash). wycats 2010-08-01 03:18:41 -07:00
  • 8714a581e9 First pass at getting booleans working wycats 2010-07-31 18:26:26 -07:00
  • 755f854c50 Reorganize things and remove unneeded dependency on jQuery wycats 2010-07-31 12:00:11 -07:00
  • a83e87e5ae Add support for comments wycats 2010-07-31 11:51:50 -07:00
  • ac669c97b7 Initial handlebars commit and parser. Simple {{}} works. wycats 2010-07-31 01:23:28 -07:00