summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
Commit message (Collapse)AuthorAgeFilesLines
* Refactor qunit unit testskpdecker2013-06-011-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 partialskpdecker2013-05-311-8/+20
|
* Move external AST tests into qunit speckpdecker2013-05-311-0/+4
|
* Allow execution of helpers on the contextkpdecker2013-05-301-0/+8
| | | Fixes #285
* Require matching braces in escaped expressionskpdecker2013-05-291-0/+9
| | | Fixes #437
* Allow function arguments to with and eachkpdecker2013-05-291-0/+13
| | | | Via @mcdan Fixes #239
* improve error message on missing helperkpdecker2013-05-291-1/+1
| | | | Via @stefanpenner Fixes #523
* Allow ID, STRING, or INTEGER for partial namekpdecker2013-05-291-0/+20
| | | Fixes #519
* Protect from object prototype modificationskpdecker2013-05-281-0/+8
| | | | Fixes #534
* Add support for complex ids in @data referenceskpdecker2013-05-271-0/+48
|
* Allowed for points to be in partial path nameJames Gorrie2013-05-171-0/+7
|
* Only run "require" tests when require() is availableJesse Clark2013-05-151-20/+24
|
* Add unit tests for require() handlerJesse Clark2013-05-151-0/+20
|
* Merge pull request #454 from leshill/fix_string_mode_contextsKevin Decker2013-04-071-0/+26
|\ | | | | Add contexts for string mode hash values
| * Add contexts for string mode hash valuesLes Hill2013-03-191-0/+26
| | | | | | | | Allows for evaluating hash parameters such as ../city in string mode.
* | Allow multiple partial and helper registrationkpdecker2013-04-071-0/+32
| | | | | | | | | | | | Fixes #369
* | Restore knownHelpersOnly throwkpdecker2013-04-061-0/+5
| | | | | | Fixes #302
* | Escape unicode newlines in string literalskpdecker2013-04-061-0/+4
| | | | | | Fixes #375
* | Add test case for GH-458kpdecker2013-04-061-0/+4
| |
* | escapeExpression testskpdecker2013-04-061-0/+13
| |
* | isEmpty testkpdecker2013-04-061-0/+15
| |
* | Add support for \\{ escapeskpdecker2013-03-311-0/+6
|/ | | Fixes #456
* Fix #428 nested if else renderingkpdecker2013-02-161-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-messageKevin Decker2013-02-161-1/+1
|\ | | | | Fix method name in error message
| * Fix method name in error messageRyunosuke SATO2013-02-161-1/+1
| | | | | | | | - compile -> precompile
* | Add explicit SafeString property testkpdecker2013-02-161-0/+6
|/
* Negative number literal supportkpdecker2013-02-151-0/+10
| | | Fixes #422
* Handlebars.parse/precompile/compile can now be passed an already-compiled ↵machty2013-02-071-1/+1
| | | | Handlebars AST.
* Only allow 'this' or '..' to lead a pathLes Hill2013-01-211-0/+22
| | | | Paths like 'outer/../key' raise an exception when compiling.
* Expand literal syntax testskpdecker2013-01-191-2/+9
|
* Make equals without messages more resilientkpdecker2013-01-191-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") === truetomhuda2013-01-181-3/+4
|
* Must pop the stack extra for hashestomhuda2013-01-181-2/+5
|
* Add support for getting types in string modeYehuda Katz2013-01-161-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 coveragekpdecker2013-01-141-8/+17
| | | Fixes #216
* Prevent write on all depth variableskpdecker2013-01-131-2/+2
|
* Prevent context overwrite by replaceStackkpdecker2013-01-131-0/+12
| | | Fixes #408.
* Cleanup testskpdecker2013-01-131-3/+3
| | | jshint and fixup arg passing
* Fix spec for 8df8488Les Hill2013-01-061-2/+3
|
* Fill in missing specsYehuda Katz2012-12-231-3/+8
|
* Merge pull request #389 from leshill/partial_namesYehuda Katz2012-12-231-3/+11
|\ | | | | Partials can be paths
| * Test for #84Les Hill2012-12-131-0/+8
| |
| * Partials can be pathsLes Hill2012-12-131-3/+3
| | | | | | | | | | | | Allows partials with slashes, a common partial syntax. For example: {{> shared/dude}}
* | Merge pull request #390 from eastridge/masterYehuda Katz2012-12-231-0/+17
|\ \ | | | | | | Make {data: true} a default compile option
| * | Add failing unit test for private variablesRyan Eastridge2012-12-121-0/+17
| |/
* | Get a better error for compile(falsy)Yehuda Katz2012-12-231-0/+6
|/
* Fix handling of Errors in ChromePeter Wagenet2012-11-021-5/+19
|
* Added unit tests for #each with objectsMike Petrovich2012-10-151-2/+23
|
* Bind functions to the context properly.Tyson Tate2012-09-191-0/+12
| | | | | | The regression was introduced in 1.0.rc.1. This fixes issue #317.
* Merge pull request #198 from codekitchen/masterYehuda Katz2012-09-141-0/+2
|\ | | | | properly handle ampersands when HTML escaping
| * properly handle amperstands when HTML escapingBrian Palmer2012-02-291-0/+2
| | | | | | | | | | | | | | | | | | | | escapeExpression, when given a string like "&gt;", was simply returning "&gt;", not escaping the amperstand. This is incorrect, and makes it impossible to have Handlebars properly escape a string like "Escaped, <b> looks like: &lt;b&gt;" 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-arrayYehuda Katz2012-09-141-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 anKarl Westin2012-08-271-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 caseskpdecker2012-09-131-0/+2
|/ /
* | Merge with upstream/masterkpdecker2012-08-211-0/+27
|\ \
| * | Recognize bar='baz' hash argumentLes Hill2012-08-141-0/+13
| | |
| * | this parameter testskpdecker2012-07-301-0/+14
| | |
* | | Execute mocha test from npm testkpdecker2012-07-231-0/+24
| | |
* | | Make jshint happy(er)kpdecker2012-07-231-38/+35
| | |
* | | Use suite rather than module for module declkpdecker2012-07-231-13/+13
|/ /
* | Make deep @data trigger the data optionYehuda Katz2012-07-051-5/+25
| |
* | Add support for @data variablesYehuda Katz2012-07-051-1/+56
| |
* | More cleanuptomhuda2012-05-281-4/+4
| | | | | | | | * Make block and inverse use the main helper path * Eliminate separate inverse AST node
* | Start doing earlier work on helpersYehuda Katz2012-05-281-25/+18
| |
* | Simple spec for isolation analysisYehuda Katz2012-05-261-0/+3
| |
* | Several improvements to compiled output:tomhuda2012-05-261-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 Katz2011-12-311-14/+43
| | | | semantics) and helpers (which have Handlebars helper semantics).
* data should be passed through to partials. closes #111.Yehuda Katz2011-12-271-0/+17
|
* Allow function parameters to #if. This was originally disallowed because it ↵Yehuda Katz2011-12-271-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 Katz2011-12-271-5/+7
| | | | escaped path segments.
* Test that the hello world mustache example worksYehuda Katz2011-12-271-0/+12
|
* Fix bug where inverse section was being passed to subsequent helpersYehuda Katz2011-12-271-1/+10
|
* Added 'log' helper - See #97Peter Wagenet2011-10-241-1/+18
|
* Fixed errors occurring because of undefined properties on nested paths.Alan Johnson2011-09-021-1/+0
|
* Reproduced undefined property error.Alan Johnson2011-09-021-0/+10
|
* Wrote a quick test for partials with literal paths.Alan Johnson2011-09-021-0/+7
|
* Got more complex literal expressions working.Alan Johnson2011-09-021-0/+5
|
* Got simple literal expressions added into paths.Alan Johnson2011-09-021-2/+6
|
* knownHandlers and knownHandlersOnly compile options.kpdecker2011-07-311-0/+40
|
* Avoid eval when running in VM+Compiler modekpdecker2011-07-301-1/+10
|
* Update partial testing for the various modeskpdecker2011-07-301-6/+18
|
* Throw a handlebars exception when attempting to use template partials in VM ↵kpdecker2011-07-301-0/+11
| | | | mode.
* Use CompilerContext.compile for tests rather than Handlebars.compile.kpdecker2011-07-301-30/+30
| | | This prevents false negatives on the partial tests.
* Move mismatched block test from quint to parser tests.kpdecker2011-07-301-8/+0
|
* Can access context variables masked by helpers by scoping with 'this.'kpdecker2011-07-291-0/+44
|
* Add missing messages in equal testskpdecker2011-07-291-24/+24
|
* * Remove legacy support for inverse sections as additional parameters.tomhuda2011-07-071-10/+4
| | | | * Unify inverse and normal block helpers * Make Handlebars.Exception inherit from JS Error
* Merge pull request #66 from rgrove/fix-empty-array-ifAlan Johnson2011-06-271-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 Grove2011-04-201-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 supporttomhuda2011-06-011-3/+55
| |
* | Add support for INTEGER expressionstomhuda2011-06-011-29/+29
| |
* | Remove / from the list of escaped chars and add `.Ryan Grove2011-05-091-4/+4
| | | | | | | | | | | | | | | | It's probably fine not to escape /, since its only danger is in ending entities (like &amp/). 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-escapingRyan Grove2011-05-091-28/+116
|\ \ | | | | | | | | | | | | Conflicts: lib/handlebars/utils.js
| * | Update specs and code so that the function passed to block helpers has the ↵tomhuda2011-05-041-2/+2
| | | | | | | | | | | | same API as regular compiled templates
| * | Update specs for change to template signaturetomhuda2011-05-031-22/+28
| | |
| * | Add support for passing String parameters to helpertomhuda2011-05-031-7/+84
| | |
| * | Merge pull request #69 from rgrove/allow-hyphens.Yehuda Katz2011-05-031-0/+4
| |\ \ | | | | | | | | Allow ids to contain hyphens. Fixes #36.
| | * | Allow ids to contain hyphens. Fixes #36.Ryan Grove2011-04-281-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 Katz2011-05-031-1/+2
| |\ \ | | |/ | |/| Fix multi-backslash escaping
| | * Test multi-backslash-escapingJason Davies2011-02-281-1/+1
| | |