Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor qunit unit tests | kpdecker | 2013-06-01 | 1 | -1657/+0 |
| | | | | | | Allows for testing node, browser, and precompiled modes in the node tests. Also reorganizes the qunit spec file to provide better organization. | ||||
* | Merge global and passed helpers and partials | kpdecker | 2013-05-31 | 1 | -8/+20 |
| | |||||
* | Move external AST tests into qunit spec | kpdecker | 2013-05-31 | 1 | -0/+4 |
| | |||||
* | Allow execution of helpers on the context | kpdecker | 2013-05-30 | 1 | -0/+8 |
| | | | Fixes #285 | ||||
* | Require matching braces in escaped expressions | kpdecker | 2013-05-29 | 1 | -0/+9 |
| | | | Fixes #437 | ||||
* | Allow function arguments to with and each | kpdecker | 2013-05-29 | 1 | -0/+13 |
| | | | | Via @mcdan Fixes #239 | ||||
* | improve error message on missing helper | kpdecker | 2013-05-29 | 1 | -1/+1 |
| | | | | Via @stefanpenner Fixes #523 | ||||
* | Allow ID, STRING, or INTEGER for partial name | kpdecker | 2013-05-29 | 1 | -0/+20 |
| | | | Fixes #519 | ||||
* | Protect from object prototype modifications | kpdecker | 2013-05-28 | 1 | -0/+8 |
| | | | | Fixes #534 | ||||
* | Add support for complex ids in @data references | kpdecker | 2013-05-27 | 1 | -0/+48 |
| | |||||
* | Allowed for points to be in partial path name | James Gorrie | 2013-05-17 | 1 | -0/+7 |
| | |||||
* | Only run "require" tests when require() is available | Jesse Clark | 2013-05-15 | 1 | -20/+24 |
| | |||||
* | Add unit tests for require() handler | Jesse Clark | 2013-05-15 | 1 | -0/+20 |
| | |||||
* | Merge pull request #454 from leshill/fix_string_mode_contexts | Kevin Decker | 2013-04-07 | 1 | -0/+26 |
|\ | | | | | Add contexts for string mode hash values | ||||
| * | Add contexts for string mode hash values | Les Hill | 2013-03-19 | 1 | -0/+26 |
| | | | | | | | | Allows for evaluating hash parameters such as ../city in string mode. | ||||
* | | Allow multiple partial and helper registration | kpdecker | 2013-04-07 | 1 | -0/+32 |
| | | | | | | | | | | | | Fixes #369 | ||||
* | | Restore knownHelpersOnly throw | kpdecker | 2013-04-06 | 1 | -0/+5 |
| | | | | | | Fixes #302 | ||||
* | | Escape unicode newlines in string literals | kpdecker | 2013-04-06 | 1 | -0/+4 |
| | | | | | | Fixes #375 | ||||
* | | Add test case for GH-458 | kpdecker | 2013-04-06 | 1 | -0/+4 |
| | | |||||
* | | escapeExpression tests | kpdecker | 2013-04-06 | 1 | -0/+13 |
| | | |||||
* | | isEmpty test | kpdecker | 2013-04-06 | 1 | -0/+15 |
| | | |||||
* | | Add support for \\{ escapes | kpdecker | 2013-03-31 | 1 | -0/+6 |
|/ | | | Fixes #456 | ||||
* | Fix #428 nested if else rendering | kpdecker | 2013-02-16 | 1 | -0/+13 |
| | | | | The program equality checker was not taking children into account when determining equality, causing breakages under similar cases. | ||||
* | Merge pull request #442 from tricknotes/fix-method-name-in-error-message | Kevin Decker | 2013-02-16 | 1 | -1/+1 |
|\ | | | | | Fix method name in error message | ||||
| * | Fix method name in error message | Ryunosuke SATO | 2013-02-16 | 1 | -1/+1 |
| | | | | | | | | - compile -> precompile | ||||
* | | Add explicit SafeString property test | kpdecker | 2013-02-16 | 1 | -0/+6 |
|/ | |||||
* | Negative number literal support | kpdecker | 2013-02-15 | 1 | -0/+10 |
| | | | Fixes #422 | ||||
* | Handlebars.parse/precompile/compile can now be passed an already-compiled ↵ | machty | 2013-02-07 | 1 | -1/+1 |
| | | | | Handlebars AST. | ||||
* | Only allow 'this' or '..' to lead a path | Les Hill | 2013-01-21 | 1 | -0/+22 |
| | | | | Paths like 'outer/../key' raise an exception when compiling. | ||||
* | Expand literal syntax tests | kpdecker | 2013-01-19 | 1 | -2/+9 |
| | |||||
* | Make equals without messages more resilient | kpdecker | 2013-01-19 | 1 | -0/+6 |
| | | | | | When called without a message parameter the tests would fail under some environments. I'm not clear on what is causing the failure, perhaps ruby version, but this patch cleans up the issues there. | ||||
* | Boolean("false") === true | tomhuda | 2013-01-18 | 1 | -3/+4 |
| | |||||
* | Must pop the stack extra for hashes | tomhuda | 2013-01-18 | 1 | -2/+5 |
| | |||||
* | Add support for getting types in string mode | Yehuda Katz | 2013-01-16 | 1 | -12/+38 |
| | | | | | This makes it possible to determine whether an argument was passed as a string or as a path when implementing helpers in string mode. | ||||
* | Expand helperMissing test coverage | kpdecker | 2013-01-14 | 1 | -8/+17 |
| | | | Fixes #216 | ||||
* | Prevent write on all depth variables | kpdecker | 2013-01-13 | 1 | -2/+2 |
| | |||||
* | Prevent context overwrite by replaceStack | kpdecker | 2013-01-13 | 1 | -0/+12 |
| | | | Fixes #408. | ||||
* | Cleanup tests | kpdecker | 2013-01-13 | 1 | -3/+3 |
| | | | jshint and fixup arg passing | ||||
* | Fix spec for 8df8488 | Les Hill | 2013-01-06 | 1 | -2/+3 |
| | |||||
* | Fill in missing specs | Yehuda Katz | 2012-12-23 | 1 | -3/+8 |
| | |||||
* | Merge pull request #389 from leshill/partial_names | Yehuda Katz | 2012-12-23 | 1 | -3/+11 |
|\ | | | | | Partials can be paths | ||||
| * | Test for #84 | Les Hill | 2012-12-13 | 1 | -0/+8 |
| | | |||||
| * | Partials can be paths | Les Hill | 2012-12-13 | 1 | -3/+3 |
| | | | | | | | | | | | | Allows partials with slashes, a common partial syntax. For example: {{> shared/dude}} | ||||
* | | Merge pull request #390 from eastridge/master | Yehuda Katz | 2012-12-23 | 1 | -0/+17 |
|\ \ | | | | | | | Make {data: true} a default compile option | ||||
| * | | Add failing unit test for private variables | Ryan Eastridge | 2012-12-12 | 1 | -0/+17 |
| |/ | |||||
* | | Get a better error for compile(falsy) | Yehuda Katz | 2012-12-23 | 1 | -0/+6 |
|/ | |||||
* | Fix handling of Errors in Chrome | Peter Wagenet | 2012-11-02 | 1 | -5/+19 |
| | |||||
* | Added unit tests for #each with objects | Mike Petrovich | 2012-10-15 | 1 | -2/+23 |
| | |||||
* | Bind functions to the context properly. | Tyson Tate | 2012-09-19 | 1 | -0/+12 |
| | | | | | | The regression was introduced in 1.0.rc.1. This fixes issue #317. | ||||
* | Merge pull request #198 from codekitchen/master | Yehuda Katz | 2012-09-14 | 1 | -0/+2 |
|\ | | | | | properly handle ampersands when HTML escaping | ||||
| * | properly handle amperstands when HTML escaping | Brian Palmer | 2012-02-29 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | escapeExpression, when given a string like ">", was simply returning ">", not escaping the amperstand. This is incorrect, and makes it impossible to have Handlebars properly escape a string like "Escaped, <b> looks like: <b>" If the intention of the user is to not escape these characters, then {{{}}} or {{&}} should be used | ||||
* | | Merge pull request #297 from karlwestin/fix-reverse-array | Yehuda Katz | 2012-09-14 | 1 | -0/+10 |
|\ \ | | | | | | | Fixed an issue where {{#array}} {{/array}} wouldn't pass in an @index data variable | ||||
| * | | Fixed an issue where {{#array}} {{/array}} wouldn't pass in an | Karl Westin | 2012-08-27 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | @index data variable. I just thought it would be nice to add in this feature. I'm using the two of these a little interchangable, so if other people are doing that as well, it might help usability. | ||||
* | | | Add nested hyphen test cases | kpdecker | 2012-09-13 | 1 | -0/+2 |
|/ / | |||||
* | | Merge with upstream/master | kpdecker | 2012-08-21 | 1 | -0/+27 |
|\ \ | |||||
| * | | Recognize bar='baz' hash argument | Les Hill | 2012-08-14 | 1 | -0/+13 |
| | | | |||||
| * | | this parameter tests | kpdecker | 2012-07-30 | 1 | -0/+14 |
| | | | |||||
* | | | Execute mocha test from npm test | kpdecker | 2012-07-23 | 1 | -0/+24 |
| | | | |||||
* | | | Make jshint happy(er) | kpdecker | 2012-07-23 | 1 | -38/+35 |
| | | | |||||
* | | | Use suite rather than module for module decl | kpdecker | 2012-07-23 | 1 | -13/+13 |
|/ / | |||||
* | | Make deep @data trigger the data option | Yehuda Katz | 2012-07-05 | 1 | -5/+25 |
| | | |||||
* | | Add support for @data variables | Yehuda Katz | 2012-07-05 | 1 | -1/+56 |
| | | |||||
* | | More cleanup | tomhuda | 2012-05-28 | 1 | -4/+4 |
| | | | | | | | | * Make block and inverse use the main helper path * Eliminate separate inverse AST node | ||||
* | | Start doing earlier work on helpers | Yehuda Katz | 2012-05-28 | 1 | -25/+18 |
| | | |||||
* | | Simple spec for isolation analysis | Yehuda Katz | 2012-05-26 | 1 | -0/+3 |
| | | |||||
* | | Several improvements to compiled output: | tomhuda | 2012-05-26 | 1 | -50/+50 |
|/ | | | | | | | | | | | * Eliminate legacy support for an options hash that doubles as a function. This prevented us from building the hash as a literal, and added a bunch of code weight * Create a new "stack literal" construct, that allows an opcode to push a literal expression onto the stack. This will not allocate a new stack variable, and when popped, will simply return the literal expression as a String. | ||||
* | Differentiate between lambdas in the context (which should have mustache ↵ | Yehuda Katz | 2011-12-31 | 1 | -14/+43 |
| | | | | semantics) and helpers (which have Handlebars helper semantics). | ||||
* | data should be passed through to partials. closes #111. | Yehuda Katz | 2011-12-27 | 1 | -0/+17 |
| | |||||
* | Allow function parameters to #if. This was originally disallowed because it ↵ | Yehuda Katz | 2011-12-27 | 1 | -0/+12 |
| | | | | | is decidedly not idiomatic Handlebars, which would prefer that you use helpers for these cases, not pollute your context objects with functions to call from your template, but enough people asked for it that I'll give in. I will personally not be using this feature and still strongly recommend that people use helpers in this case. | ||||
* | Literal square-bracket path segments cannot have ] in them. TODO: Allow ↵ | Yehuda Katz | 2011-12-27 | 1 | -5/+7 |
| | | | | escaped path segments. | ||||
* | Test that the hello world mustache example works | Yehuda Katz | 2011-12-27 | 1 | -0/+12 |
| | |||||
* | Fix bug where inverse section was being passed to subsequent helpers | Yehuda Katz | 2011-12-27 | 1 | -1/+10 |
| | |||||
* | Added 'log' helper - See #97 | Peter Wagenet | 2011-10-24 | 1 | -1/+18 |
| | |||||
* | Fixed errors occurring because of undefined properties on nested paths. | Alan Johnson | 2011-09-02 | 1 | -1/+0 |
| | |||||
* | Reproduced undefined property error. | Alan Johnson | 2011-09-02 | 1 | -0/+10 |
| | |||||
* | Wrote a quick test for partials with literal paths. | Alan Johnson | 2011-09-02 | 1 | -0/+7 |
| | |||||
* | Got more complex literal expressions working. | Alan Johnson | 2011-09-02 | 1 | -0/+5 |
| | |||||
* | Got simple literal expressions added into paths. | Alan Johnson | 2011-09-02 | 1 | -2/+6 |
| | |||||
* | knownHandlers and knownHandlersOnly compile options. | kpdecker | 2011-07-31 | 1 | -0/+40 |
| | |||||
* | Avoid eval when running in VM+Compiler mode | kpdecker | 2011-07-30 | 1 | -1/+10 |
| | |||||
* | Update partial testing for the various modes | kpdecker | 2011-07-30 | 1 | -6/+18 |
| | |||||
* | Throw a handlebars exception when attempting to use template partials in VM ↵ | kpdecker | 2011-07-30 | 1 | -0/+11 |
| | | | | mode. | ||||
* | Use CompilerContext.compile for tests rather than Handlebars.compile. | kpdecker | 2011-07-30 | 1 | -30/+30 |
| | | | This prevents false negatives on the partial tests. | ||||
* | Move mismatched block test from quint to parser tests. | kpdecker | 2011-07-30 | 1 | -8/+0 |
| | |||||
* | Can access context variables masked by helpers by scoping with 'this.' | kpdecker | 2011-07-29 | 1 | -0/+44 |
| | |||||
* | Add missing messages in equal tests | kpdecker | 2011-07-29 | 1 | -24/+24 |
| | |||||
* | * Remove legacy support for inverse sections as additional parameters. | tomhuda | 2011-07-07 | 1 | -10/+4 |
| | | | | * Unify inverse and normal block helpers * Make Handlebars.Exception inherit from JS Error | ||||
* | Merge pull request #66 from rgrove/fix-empty-array-if | Alan Johnson | 2011-06-27 | 1 | -0/+4 |
|\ | | | | | The "if" block helper shouldn't treat empty arrays as truthy | ||||
| * | The "if" block helper shouldn't treat empty arrays as truthy. | Ryan Grove | 2011-04-20 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | Given the data {foo: []}, the following template previously considered foo to be truthy when it shouldn't have: {{#if foo}} You should not see me! {{else}} You should see me! {{/if}} | ||||
* | | Add BOOLEAN support | tomhuda | 2011-06-01 | 1 | -3/+55 |
| | | |||||
* | | Add support for INTEGER expressions | tomhuda | 2011-06-01 | 1 | -29/+29 |
| | | |||||
* | | Remove / from the list of escaped chars and add `. | Ryan Grove | 2011-05-09 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | It's probably fine not to escape /, since its only danger is in ending entities (like &/). This isn't a problem for us, since the badChars regex won't allow it and the & will get escaped. It turns out ` can be used to quote attribute values in IE, so it needs to be escaped along with " and '. | ||||
* | | Merge branch 'master' into fix-escaping | Ryan Grove | 2011-05-09 | 1 | -28/+116 |
|\ \ | | | | | | | | | | | | | Conflicts: lib/handlebars/utils.js | ||||
| * | | Update specs and code so that the function passed to block helpers has the ↵ | tomhuda | 2011-05-04 | 1 | -2/+2 |
| | | | | | | | | | | | | same API as regular compiled templates | ||||
| * | | Update specs for change to template signature | tomhuda | 2011-05-03 | 1 | -22/+28 |
| | | | |||||
| * | | Add support for passing String parameters to helper | tomhuda | 2011-05-03 | 1 | -7/+84 |
| | | | |||||
| * | | Merge pull request #69 from rgrove/allow-hyphens. | Yehuda Katz | 2011-05-03 | 1 | -0/+4 |
| |\ \ | | | | | | | | | Allow ids to contain hyphens. Fixes #36. | ||||
| | * | | Allow ids to contain hyphens. Fixes #36. | Ryan Grove | 2011-04-28 | 1 | -0/+4 |
| | |/ | | | | | | | | | | | | | Previously, a mustache like {{foo-bar}} would generate a parse error, which was a departure from the behavior of other Mustache implementations. | ||||
| * | | Merge pull request #48 from jasondavies/master. | Yehuda Katz | 2011-05-03 | 1 | -1/+2 |
| |\ \ | | |/ | |/| | Fix multi-backslash escaping | ||||
| | * | Test multi-backslash-escaping | Jason Davies | 2011-02-28 | 1 | -1/+1 |
| | | |