Commit Graph

  • d044ada7aa Convert children to nested functions. Reuse identifiers by closure where possible. kpdecker 2011-07-31 16:17:39 -05:00
  • 77a20a3a9f Alias self -> this kpdecker 2011-07-31 14:58:37 -05:00
  • 9821da8df7 Move aliases and registers into context object. kpdecker 2011-07-31 14:10:32 -05:00
  • 2d538baf72 Use x = a[y] || b[y] rather than if exists lookup kpdecker 2011-07-31 11:27:47 -05:00
  • c7e8ddd6b5 Minimizable id aliases. kpdecker 2011-07-31 11:25:40 -05:00
  • 6fcebec713 buffer += kpdecker 2011-07-31 11:21:18 -05:00
  • 993c793565 Avoid eval when running in VM+Compiler mode kpdecker 2011-07-30 16:55:26 -05:00
  • f8edc59025 Update the bin to use the precompile API kpdecker 2011-07-30 16:20:26 -05:00
  • 3af9de7407 Update partial testing for the various modes kpdecker 2011-07-30 16:12:20 -05:00
  • 72ea816cf7 Remove debug code kpdecker 2011-07-30 16:11:37 -05:00
  • d641dae5f1 Full context and compileWithPartials test helper kpdecker 2011-07-30 16:02:11 -05:00
  • ccf32821df Throw a handlebars exception when attempting to use template partials in VM mode. kpdecker 2011-07-30 16:01:43 -05:00
  • 8e23ce87d3 Use CompilerContext.compile for tests rather than Handlebars.compile. kpdecker 2011-07-30 15:54:57 -05:00
  • 5a3522cf2e Builder for handlebars.vm.js kpdecker 2011-07-30 15:26:34 -05:00
  • aaec001931 Split the tests into compiler and vm tests kpdecker 2011-07-30 15:26:21 -05:00
  • 3d9e5070f5 Move mismatched block test from quint to parser tests. kpdecker 2011-07-30 15:25:25 -05:00
  • 82a1b0e85c Temporary Handlebars.compile implementation in compiler kpdecker 2011-07-30 15:24:49 -05:00
  • 600a669d12 Expose Handlebars.precompile method from the compiler. kpdecker 2011-07-30 15:24:14 -05:00
  • 5aa12b5e09 Rename Handlebars.VM.compile to Handelbars.VM.template kpdecker 2011-07-30 15:23:01 -05:00
  • 6a6edf5ae6 Simple node template compiler kpdecker 2011-07-30 12:25:41 -05:00
  • aeda7e389f Ignores update kpdecker 2011-07-30 12:19:30 -05:00
  • 09e79f0587 Package info kpdecker 2011-07-30 12:19:17 -05:00
  • 4a9270aa38 Fix module loading within node kpdecker 2011-07-30 12:18:56 -05:00
  • 59f5331db4 Phase 2 of precompiled extraction: Use string representations to pass around the function context kpdecker 2011-07-30 11:23:24 -05:00
  • 74bd8cac60 Phase 1 of precompiled extraction: Separate template logic from container construction. kpdecker 2011-07-30 11:10:13 -05:00
  • 542d64f0be Remove unnecessary var declaration. kpdecker 2011-07-30 10:44:07 -05:00
  • 5e611205ac Create compiler base file. kpdecker 2011-07-30 10:38:36 -05:00
  • 2e77f1c777 Remove the debug file (Suspect broken Due to missing class references) kpdecker 2011-07-30 10:33:40 -05:00
  • 8c49721c70 Move visitor into compiler subdir kpdecker 2011-07-30 10:28:31 -05:00
  • 2fc01ff73a Move art into compiler dir kpdecker 2011-07-30 10:25:30 -05:00
  • bba08ad95f Move printer into compiler dir kpdecker 2011-07-30 10:23:37 -05:00
  • 034dafddac Move parser file into compiler subdir kpdecker 2011-07-30 10:14:59 -05:00
  • 6aa9a30b02 Update node loader for compiler/vm split kpdecker 2011-07-30 10:12:37 -05:00
  • f2dccb753f Break compiler and vm logic into separate files. kpdecker 2011-07-30 10:11:13 -05:00
  • 471f3b9748 Reduce scope of global variable kpdecker 2011-07-29 22:45:16 -05:00
  • a927125909 Can access context variables masked by helpers by scoping with 'this.' kpdecker 2011-07-29 20:53:47 -05:00
  • 9062cac3f0 Add missing messages in equal tests kpdecker 2011-07-29 20:45:17 -05:00
  • 059a80661d * Remove legacy support for inverse sections as additional parameters. * Unify inverse and normal block helpers * Make Handlebars.Exception inherit from JS Error tomhuda 2011-07-07 23:09:33 -07:00
  • 37e36bf137 Merge pull request #66 from rgrove/fix-empty-array-if Alan Johnson 2011-06-27 03:15:50 -07:00
  • 3c2086eb2a Merge pull request #98 from Pumpkin/master Alan Johnson 2011-06-27 03:11:41 -07:00
  • 1ff0b657be Update README inook 2011-06-26 10:37:55 +04:00
  • 17dbfa7004 Merge pull request #96 from gleitz/master Yehuda Katz 2011-06-22 16:37:26 -07:00
  • 52900c89f7 removed references to .boolean, which broke the YUI Compressor gleitz 2011-06-22 17:18:07 -04:00
  • be8f4f6fb9 Updated the boolean functions to work with YUI compressor. Linted other files for consistency gleitz 2011-06-22 13:54:17 -04:00
  • 1482f1ae72 Add BOOLEAN support tomhuda 2011-06-01 22:57:22 -07:00
  • 0f78345d0c Add support for INTEGER expressions tomhuda 2011-06-01 22:33:48 -07:00
  • 4eeda34ad2 Merge pull request #79 from schuyler1d/numbers Yehuda Katz 2011-05-25 17:08:18 -07:00
  • ed1be562e2 Merge pull request #81 from schuyler1d/google_json_support Yehuda Katz 2011-05-25 17:06:50 -07:00
  • 04b359d15b Merge pull request #86 from jblotus/master Yehuda Katz 2011-05-25 17:06:31 -07:00
  • f07f70ca42 Merge pull request #68 from rgrove/fix-escaping Yehuda Katz 2011-05-25 17:05:54 -07:00
  • 28d35180bd fixing partials with int names James Fuller 2011-05-24 00:40:09 -04:00
  • 0e22301e8f fixed a syntax error in documentation example James Fuller 2011-05-18 19:26:15 -07:00
  • 4e5cf17311 support "$" as an ID character: google has a bunch of json that has $t, etc values Schuyler Duveen 2011-05-13 11:40:31 -04:00
  • a4ca50533d Add support for line-breaks in mustaches wycats 2011-05-12 12:23:15 -07:00
  • 1aa512d227 allow number indexes in paths for array access Schuyler Duveen 2011-05-10 12:00:40 -04:00
  • 2f4644529c Remove / from the list of escaped chars and add `. Ryan Grove 2011-05-09 15:19:23 -07:00
  • d109e31f62 Merge branch 'master' into fix-escaping Ryan Grove 2011-05-09 14:59:51 -07:00
  • 5168037b5a Edited README.markdown via GitHub Yehuda Katz 2011-05-05 11:22:03 -07:00
  • 92535a9158 Edited README.markdown via GitHub Yehuda Katz 2011-05-05 11:16:22 -07:00
  • 4f309bb3aa Merge pull request #74 from jeroenvandijk/patch-1 Yehuda Katz 2011-05-05 11:14:29 -07:00
  • b4c949cc07 Merge pull request #73 from nhocki/patch-1 Yehuda Katz 2011-05-05 11:14:04 -07:00
  • 90bb568faf Add a link to the Readme to the very nice documentation site Jeroen van Dijk 2011-05-04 01:37:21 -07:00
  • 60040e60fb Update specs and code so that the function passed to block helpers has the same API as regular compiled templates tomhuda 2011-05-04 00:03:50 -07:00
  • a00054e26b Adding missing ) to the upgrading section... Nicolás Hock Isaza 2011-05-03 21:09:09 -07:00
  • 81071dd22c Add VERSION constant 1.0.0.beta.1 tomhuda 2011-05-03 20:39:24 -07:00
  • c29223a98b Update specs for change to template signature tomhuda 2011-05-03 20:39:14 -07:00
  • 5d99572006 Rename vm.js to compiler.js tomhuda 2011-05-03 20:38:28 -07:00
  • d83e1c7484 Remove unnecessary original runtime implementation tomhuda 2011-05-03 20:38:06 -07:00
  • 201ecbd7bc Improve Handlebars subclassability tomhuda 2011-05-03 19:30:26 -07:00
  • 9333d1210d Add support for passing String parameters to helper tomhuda 2011-03-30 23:12:45 -07:00
  • 2615fa4bd1 Add a default helperMissing to help catch errors and restore old behavior tomhuda 2011-03-30 23:12:18 -07:00
  • 3e5bc84058 Merge pull request #69 from rgrove/allow-hyphens. Yehuda Katz 2011-05-03 19:01:37 -07:00
  • 5d8480fa8a Merge pull request #48 from jasondavies/master. Yehuda Katz 2011-05-03 18:59:59 -07:00
  • 56b0ce56f8 Merge pull request #50 from emtrane/spec_patch. Yehuda Katz 2011-05-03 18:59:07 -07:00
  • 9dc4bd47e6 Merge pull request #65 from rgrove/master. Yehuda Katz 2011-05-03 18:58:50 -07:00
  • 4fb42d7682 Merge pull request #71 from andrewmbenton/master. Yehuda Katz 2011-05-03 18:57:57 -07:00
  • b0df69ddec add missing semicolon Andrew Benton 2011-04-30 19:07:38 -07:00
  • b324d002ca Allow ids to contain hyphens. Fixes #36. Ryan Grove 2011-04-28 22:30:21 -07:00
  • b291a1ad8c Add ", ', and / to the list of chars that need HTML escaping. Ryan Grove 2011-04-25 11:14:26 -07:00
  • dec196b4d9 The "if" block helper shouldn't treat empty arrays as truthy. Ryan Grove 2011-04-20 16:56:37 -07:00
  • aba636ec38 Support multi-line comments. Ryan Grove 2011-04-18 16:08:20 -07:00
  • 038d9b3fee Check in a LICENSE file wycats 2011-04-04 22:18:54 -07:00
  • 6a80531513 Merge branch 'master' of https://github.com/tf/handlebars.js into tf-master tomhuda 2011-03-26 14:04:49 -07:00
  • a1b1b160cf inserting missing return statement in unless helper (fixes issue #51) Tim Fischbach 2011-03-09 11:51:00 +01:00
  • f368f9177c Correct path to vm.js for case-sensitive filesystems Martin Davidsson 2011-03-05 21:10:18 -08:00
  • a7bb51d8a5 DRY up some code that converts program AST nodes to opcodes. tomhuda 2011-03-04 15:17:32 -08:00
  • 357710f136 Add support for block hashes and clean up mustache/program code tomhuda 2011-03-04 15:10:22 -08:00
  • ca9b9671a5 Add Hash arguments to simple mustaches (TODO: add Hash args to block helpers) tomhuda 2011-03-04 00:11:03 -08:00
  • e0aa705f71 Add support for hash args in the tokenizer and parser tomhuda 2011-03-03 21:33:28 -08:00
  • 51d2543ba1 Add support for {{foo.bar.baz}} tomhuda 2011-03-03 20:08:28 -08:00
  • e5899cad1e Test multi-backslash-escaping Jason Davies 2011-02-28 22:28:11 +00:00
  • 0397f875c5 Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2011-02-28 22:23:11 +00:00
  • 2cf88d4e77 Fix backslash escaping Jason Davies 2011-02-28 22:23:02 +00:00
  • 32d7e52182 Helpers take precedence over context properties with the same name. This is useful in scenarios where your context object is inherited from another system (such as a framework or JSON API) that may contain properties that conflict with helpers you explicitly define. tomhuda 2011-02-25 23:01:11 -08:00
  • 6fbdf4b445 Merge branch 'master' of github.com:wycats/handlebars.js tomhuda 2011-02-25 22:36:49 -08:00
  • 0d4d8813ac Merge branch 'master' of http://github.com/wycats/handlebars.js Jason Davies 2011-02-21 01:51:31 +00:00
  • 935053cc33 Added .DS_Store to gitignore. Alan Johnson 2011-02-15 16:44:48 -05:00
  • 2b319bef2f Make the function passed to a block helper have an identical signature to top-level template methods tomhuda 2011-02-14 16:05:01 -08:00
  • 76e1bb4c06 Checks to see if jison is installed before attempting to run it in Rakefile Bryan Woods 2011-02-13 12:37:08 -05:00
  • d7f93c09e7 Subclasses should be able to replace the compiler - this is needed so that child views are compiled using the updated semantics of the parent compiler 0.9.0.pre.4 tomhuda 2011-02-11 20:11:52 -08:00