Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rev runtime compiler revision | kpdecker | 2015-09-01 | 2 | -3/+4 | |
| | ||||||
* | Add basic decorators docs | kpdecker | 2015-09-01 | 1 | -0/+19 | |
| | | | Fixes #1088 | |||||
* | Add explicitPartialContext compiler flag | kpdecker | 2015-09-01 | 2 | -1/+20 | |
| | | | Fixes #1032 | |||||
* | Merge branch 'decorators' | kpdecker | 2015-09-01 | 21 | -19/+453 | |
|\ | ||||||
| * | Implement decorator helper method | kpdecker | 2015-08-22 | 2 | -15/+16 | |
| | | ||||||
| * | Implement inline partials | kpdecker | 2015-08-22 | 4 | -0/+66 | |
| | | | | | | | | | | | | Allows for partials to be defined within the current template to allow for localized code reuse as well as for conditional behavior within nested partials. Fixes #1018 | |||||
| * | Implement block decorators | kpdecker | 2015-08-22 | 7 | -8/+244 | |
| | | | | | | | | These allow for a given block to be wrapped in helper methods or metadata and allow for more control over the current container and method before the code is run. | |||||
| * | Add decorator parsing | kpdecker | 2015-08-22 | 10 | -7/+74 | |
| | | ||||||
| * | Implement decorator environment and registration | kpdecker | 2015-08-22 | 4 | -1/+65 | |
| | | ||||||
* | | Merge pull request #1087 from denniskuczynski/each_object_empty_string_key | Kevin Decker | 2015-08-30 | 2 | -1/+11 | |
|\ \ | | | | | | | Fix #each when last object entry has empty key | |||||
| * | | Fix #each when last object entry has empty key | Dennis Kuczynski | 2015-08-30 | 2 | -1/+11 | |
|/ / | ||||||
* | | Merge pull request #1084 from blendlabs/master | Kevin Decker | 2015-08-25 | 1 | -1/+1 | |
|\ \ | | | | | | | Bump uglify version to avoid vulnerability flag. | |||||
| * | | Bump uglify version to fix vulnerability | John Steidley | 2015-08-24 | 1 | -1/+1 | |
|/ / | ||||||
* | | Merge pull request #1076 from wycats/partial-block | Kevin Decker | 2015-08-23 | 13 | -38/+197 | |
|\ \ | |/ | | | Implement partial blocks | |||||
| * | Update AST doc for partial block | kpdecker | 2015-08-22 | 1 | -1/+2 | |
| | | ||||||
| * | Add whitespace control to partial block statements | kpdecker | 2015-08-22 | 1 | -1/+3 | |
| | | ||||||
| * | Create validateClose helper method | kpdecker | 2015-08-22 | 2 | -21/+20 | |
| | | | | | | | | Avoid duplicating the logic needed to check for close block mismatches. | |||||
| * | Implement partial blocks | kpdecker | 2015-08-22 | 12 | -27/+184 | |
|/ | | | | | | This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case. Partial fix for #1018 | |||||
* | Improve sanity checks in compiler and visitor | kpdecker | 2015-08-22 | 2 | -2/+13 | |
| | ||||||
* | Merge pull request #1081 from hashchange/patch-1 | Kevin Decker | 2015-08-21 | 1 | -0/+1 | |
|\ | | | | | Add Marionette.Handlebars to "in the Wild" list | |||||
| * | Add Marionette.Handlebars to "in the Wild" list | hashchange | 2015-08-21 | 1 | -0/+1 | |
|/ | ||||||
* | Drop AST constructors in favor of JSON | kpdecker | 2015-08-18 | 10 | -299/+141 | |
| | | | | | These were little more than object literal statements that were less clear due to their use of index-based arguments. Fixes #1077 | |||||
* | Pass container rather than exec as context | kpdecker | 2015-08-18 | 3 | -13/+13 | |
| | | | There is no real need for us to do `.call(container` other than for backwards compatibility with legacy versions. Using the 4.x release as a chance to optimize this behavior. | |||||
* | Remove unused parameters | kpdecker | 2015-08-18 | 1 | -2/+2 | |
| | ||||||
* | Add object option to test runner | kpdecker | 2015-08-18 | 1 | -1/+4 | |
| | ||||||
* | Run node tests last | kpdecker | 2015-08-18 | 1 | -2/+2 | |
| | | | This covers all of the test cases and generally have better stack traces so we want to have these featured more prominently. | |||||
* | Fix travis config typo | kpdecker | 2015-08-14 | 1 | -1/+1 | |
| | ||||||
* | Increase travis git window to avoid test failures | kpdecker | 2015-08-14 | 1 | -0/+3 | |
| | | | https://twitter.com/travisci/status/288390896339267584 | |||||
* | Link to try handlebars from readme | kpdecker | 2015-08-14 | 1 | -1/+1 | |
| | ||||||
* | Cleanup stack traces for test assertions | kpdecker | 2015-08-14 | 1 | -6/+22 | |
| | ||||||
* | Include inline source maps in babel build | kpdecker | 2015-08-14 | 1 | -0/+1 | |
| | ||||||
* | Add ignoreStandalone compiler option | kpdecker | 2015-08-13 | 3 | -6/+20 | |
| | | | Fixes #1072 | |||||
* | Link to installation docs | kpdecker | 2015-08-12 | 1 | -15/+1 | |
| | ||||||
* | Add license information to bower.json | kpdecker | 2015-08-12 | 1 | -0/+1 | |
| | | | | Fixes #1074 | |||||
* | Ignore empty when iterating on sparse arrays | kpdecker | 2015-08-04 | 2 | -0/+13 | |
| | | | Fixes #1065 | |||||
* | Add support for string and stdin precompilation | kpdecker | 2015-08-04 | 4 | -4/+130 | |
| | | | Fixes #1071 | |||||
* | Remove no-shadow rule | kpdecker | 2015-08-04 | 1 | -1/+1 | |
| | ||||||
* | Simplify object assignment generation logic | kpdecker | 2015-08-04 | 2 | -14/+16 | |
| | ||||||
* | Convert precompiler template loading to async | kpdecker | 2015-08-04 | 4 | -75/+113 | |
| | ||||||
* | Refactor precompiler API into two phase | kpdecker | 2015-08-04 | 3 | -117/+149 | |
| | | | Load templates and then parse them in a distinct operation. This will allow us to use other input sources such as stdin and strings. | |||||
* | Increase sauce test concurrency | kpdecker | 2015-08-03 | 1 | -1/+1 | |
| | ||||||
* | Include doctype in amd harness | kpdecker | 2015-08-03 | 1 | -0/+1 | |
| | ||||||
* | Specify platform for firefox in sauce tests | kpdecker | 2015-08-03 | 1 | -1/+1 | |
| | | | Works around what appears to be an init issue within Sauce. | |||||
* | Fix parser declaration under amd builds | kpdecker | 2015-08-03 | 1 | -1/+1 | |
| | ||||||
* | Revert "Pull sauce tests out of CI" | kpdecker | 2015-08-03 | 1 | -1/+1 | |
| | | | | This reverts commit e2ba22eaad24575ab3cb235b8fc36683acf610c2. | |||||
* | Pull out duplicated documentation from readme | kpdecker | 2015-08-03 | 1 | -271/+10 | |
| | | | Fixes #1006 | |||||
* | Bulletproof AST.helpers.helperExpression | kpdecker | 2015-08-03 | 2 | -15/+55 | |
| | | | | | Avoid undefined values and potential false positives from other type values such as partials. Fixes #1055 | |||||
* | Use += in printer | kpdecker | 2015-08-03 | 1 | -9/+9 | |
| | ||||||
* | Fix incorrect variable removal | kpdecker | 2015-08-03 | 1 | -2/+2 | |
| | ||||||
* | Enforce 100% code coverage | kpdecker | 2015-08-03 | 5 | -15/+47 | |
| | ||||||
* | Fix partial handling with different context | kpdecker | 2015-08-03 | 2 | -1/+7 | |
| | ||||||
* | Style updates | kpdecker | 2015-08-03 | 29 | -124/+154 | |
| | ||||||
* | Always return string responses | kpdecker | 2015-08-03 | 2 | -1/+15 | |
| | | | | | Certain optimizations for simple templates could result in objects returned by helpers returned rather than their string representation, resulting in some odd edge cases. This ensures that strings are always returned from the API for consistency. Fixes #1054. | |||||
* | Pass undefined fields to helpers in strict mode | kpdecker | 2015-08-03 | 3 | -9/+30 | |
| | | | | | This allows for `{{helper foo}}` to still operate under strict mode when `foo` is not defined on the context. This allows helpers to perform whatever existence checks they please so patterns like `{{#if foo}}{{foo}}{{/if}}` can be used to protect against missing values. Fixes #1063 | |||||
* | Avoid depth creation when context remains the same | kpdecker | 2015-08-03 | 3 | -3/+30 | |
| | | | | | | | Creating a new depth value seems to confuse users as they don’t expect things like `if` to require multiple `..` to break out of. With the change, we avoid pushing a context to the depth list if it’s already on the top of the stack, effectively removing cases where `.` and `..` are the same object and multiple `..` references are required. This is a breaking change and all templates that utilize `..` will have to check their usage and confirm that this does not break desired behavior. Helper authors now need to take care to return the same context value whenever it is conceptually the same and to avoid behaviors that may execute children under the current context in some situations and under different contexts under other situations. Fixes #1028 | |||||
* | Fix track id handling in partials | kpdecker | 2015-08-03 | 2 | -0/+50 | |
| | | | Fixes #914 | |||||
* | Handle this references properly in track id mode | kpdecker | 2015-08-03 | 2 | -4/+7 | |
| | ||||||
* | Avoid log output in test | kpdecker | 2015-08-03 | 1 | -1/+7 | |
| | ||||||
* | Remove out of date TODO | kpdecker | 2015-08-03 | 1 | -2/+0 | |
| | ||||||
* | Improve logging API | kpdecker | 2015-08-03 | 3 | -14/+100 | |
| | | | | | | | Adds multiple variable support and the ability to set statement level logging semantics. This breaks that logger API, cleaning up the manner in which enums are set, but the other behaviors are backwards compatible. Fixes #956 | |||||
* | Move logger into separate module | kpdecker | 2015-08-01 | 2 | -21/+23 | |
| | ||||||
* | Add rest params to es6 supported list | kpdecker | 2015-08-01 | 1 | -0/+1 | |
| | ||||||
* | Increase code coverage | kpdecker | 2015-08-01 | 4 | -5/+8 | |
| | ||||||
* | Add istanbul ignore to babel boilerplate | kpdecker | 2015-08-01 | 1 | -2/+3 | |
| | ||||||
* | Move helpers into separate modules | kpdecker | 2015-08-01 | 10 | -173/+206 | |
| | ||||||
* | Fix with operator in no @data mode | kpdecker | 2015-08-01 | 2 | -1/+7 | |
| | ||||||
* | Pull sauce tests out of CI | kpdecker | 2015-08-01 | 1 | -1/+1 | |
| | | | Disabling these until #1069 can resolve whatever the root issue is. | |||||
* | Allow empty key name in each iteration | kpdecker | 2015-08-01 | 2 | -1/+11 | |
| | | | Fixes #1021 | |||||
* | Add with block parameter support | kpdecker | 2015-08-01 | 2 | -3/+10 | |
| | | | | Fixes #1042 | |||||
* | Fix escaping of non-javascript identifiers | kpdecker | 2015-08-01 | 2 | -3/+7 | |
| | | | | The ‘ character would cause invalid javascript to be generated as it was not properly escaped. Switching to JSON.stringify safely handles all potential unescaped cases. | |||||
* | Merge pull request #1068 from 0xack13/master | Kevin Decker | 2015-07-30 | 1 | -1/+1 | |
|\ | | | | | Fix typo | |||||
| * | Merge pull request #1 from 0xack13/0xack13-patch-1-fix-typo | Saleh Batati | 2015-07-30 | 1 | -1/+1 | |
| |\ |/ / | | | Fix typo | |||||
| * | Fix typo | Saleh Batati | 2015-07-30 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #1060 from ericbn/issue-1056 | Kevin Decker | 2015-07-20 | 4 | -6/+25 | |
|\ | | | | | #1056 Fixed grammar for nested raw blocks | |||||
| * | Added comment about Jison's topState() | Eric Nielsen | 2015-07-19 | 1 | -0/+3 | |
| | | ||||||
| * | Added spec message | Eric Nielsen | 2015-07-16 | 1 | -1/+1 | |
| | | ||||||
| * | #1056 Added spec for nested raw block | Eric Nielsen | 2015-07-15 | 1 | -0/+10 | |
| | | ||||||
| * | #1056 Fixed grammar for nested raw blocks | Eric Nielsen | 2015-07-15 | 3 | -6/+12 | |
| | | ||||||
* | | Update jsfiddle link to 3.0.3 | kpdecker | 2015-07-19 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #1052 from maqnouch/patch-1 | Kevin Decker | 2015-07-02 | 1 | -1/+1 | |
|\ | | | | | Updated year in License | |||||
| * | Updated year in License | AQNOUCH Mohammed | 2015-07-02 | 1 | -1/+1 | |
|/ | ||||||
* | Fix location information for programs | kpdecker | 2015-06-26 | 4 | -6/+74 | |
| | | | | | | | | There appears to be a bug in our use of jison causing the parent location information to be reported to programs. I wasn’t able to work through what might be causing this so instead using the location information of the statements collection to generate the proper location information. This is a bit of a hack but we are very far behind on the Jison release train and upgrading will likely be a less than pleasant task that doesn’t provide us much benefit. Fixes #1024 | |||||
* | Merge pull request #1037 from tomxtobin/minor-readme-typo-fixes | Kevin Decker | 2015-06-09 | 1 | -2/+2 | |
|\ | | | | | Fix minor typos in README | |||||
| * | Fix minor typos in README | Tom X. Tobin | 2015-06-08 | 1 | -2/+2 | |
|/ | ||||||
* | Merge pull request #1019 from aymerick/aymerick-patch-typo-test | Kevin Decker | 2015-05-06 | 1 | -1/+1 | |
|\ | | | | | Fixes typo in tests | |||||
| * | Fixes typo in tests | Aymerick | 2015-05-06 | 1 | -1/+1 | |
| | | | | | | mutache => mustache | |||||
* | | Add tests for string contexts | kpdecker | 2015-05-06 | 2 | -0/+11 | |
|/ | | | | Fixes #1013 | |||||
* | Merge pull request #1015 from aymerick/fix-test | Kevin Decker | 2015-05-05 | 1 | -1/+1 | |
|\ | | | | | Fix tokenizer test for double quoted strings | |||||
| * | Fix tokenizer test for double quoted strings | Aymerick | 2015-05-01 | 1 | -1/+1 | |
| | | | | | | | | | | There is two consecutive tests with the same input data: "{{ foo bar \'baz\' }}" I suppose the first test should be about testing double quoted string. | |||||
* | | Fix VERSION update script | kpdecker | 2015-05-05 | 1 | -3/+3 | |
|/ | | | | | This broke after updating to es6 formatted code. Fixes #1016 | |||||
* | v3.0.3v3.0.3 | kpdecker | 2015-04-28 | 3 | -3/+3 | |
| | ||||||
* | Update release notes | kpdecker | 2015-04-28 | 1 | -1/+6 | |
| | ||||||
* | Move noConflict implementation to module | kpdecker | 2015-04-27 | 3 | -25/+25 | |
| | | | | | | DRYs the code to avoid escapes like #1004 Fixes #1004 | |||||
* | NPM ignore log files | kpdecker | 2015-04-27 | 1 | -0/+1 | |
| | ||||||
* | Remove jshint completely | kpdecker | 2015-04-27 | 10 | -65/+1 | |
| | ||||||
* | Merge pull request #1008 from shannonmoeller/patch-1 | Kevin Decker | 2015-04-25 | 1 | -0/+1 | |
|\ | | | | | Added handlebars-layouts to the in-the-wild list | |||||
| * | Added handlebars-layouts to the in-the-wild list | Shannon Moeller | 2015-04-24 | 1 | -0/+1 | |
|/ | | | I've written a set of helpers which implement layout blocks similar to Jade, Jinja, Swig, Twig, and others. It seems to be gaining some popularity (around 10k npm downloads per month at present) and I would be honored to have it included in the in-the-wild list in case it may prove useful to others. | |||||
* | v3.0.2v3.0.2 | kpdecker | 2015-04-20 | 3 | -3/+3 | |
| | ||||||
* | Update release notes | kpdecker | 2015-04-20 | 1 | -1/+12 | |
| | ||||||
* | Update for let and optional parameters | kpdecker | 2015-04-20 | 15 | -239/+236 | |
| |