Commits
History for handlebars.js/docs
Commits on Dec 3, 2021
-
Copy the full SHA c295ef0View commit details
Commits on Nov 23, 2021
-
Copy the full SHA e538c29View commit details
Commits on Nov 9, 2019
-
# Conflicts: # components/bower.json # components/handlebars.js.nuspec # components/package.json # package-lock.json # package.json
Copy the full SHA b0bb2a4View commit details
Commits on Oct 27, 2019
-
Add Handlebars.parseWithoutProcessing (#1584)
When authoring tooling that parses Handlebars files and emits Handlebars files, you often want to preserve the **exact** formatting of the input. The changes in this commit add a new method to the `Handlebars` namespace: `parseWithoutProcessing`. Unlike, `Handlebars.parse` (which will mutate the parsed AST to apply whitespace control) this method will parse the template and return it directly (**without** processing
😉 ). For example, parsing the following template: ```hbs {{#foo}} {{~bar~}} {{baz~}} {{/foo}} ``` Using `Handlebars.parse`, the AST returned would have truncated the following whitespace: * The whitespace prior to the `{{#foo}}` * The newline following `{{#foo}}` * The leading whitespace before `{{~bar~}}` * The whitespace between `{{~bar~}}` and `{{baz~}}` * The newline after `{{baz~}}` * The whitespace prior to the `{{/foo}}` When `Handlebars.parse` is used from `Handlebars.precompile` or `Handlebars.compile`, this whitespace stripping is **very** important (these behaviors are intentional, and generally lead to better rendered output). When the same template is parsed with `Handlebars.parseWithoutProcessing` none of those modifications to the AST are made. This enables "codemod tooling" (e.g. `prettier` and `ember-template-recast`) to preserve the **exact** initial formatting. Prior to these changes, those tools would have to _manually_ reconstruct the whitespace that is lost prior to emitting source.Copy the full SHA 62ed3c2View commit details
Commits on Oct 9, 2019
-
Copy the full SHA c56995dView commit details
Commits on Jun 18, 2019
-
Fix typo in compiler API doc: "mutation" field should read as "mutating"
The `Visitor` class expects a `boolean` property named `mutating`, instead of `mutation`.
Copy the full SHA 77e3833View commit details
Commits on Oct 17, 2017
-
Copy the full SHA 59548b4View commit details
Commits on Oct 6, 2017
-
Copy the full SHA ce3cd8aView commit details
Commits on Jan 29, 2017
Commits on Nov 11, 2016
-
Copy the full SHA 577b760View commit details
Commits on Jul 21, 2016
-
Update definition of BlockStatement.path
As pointed in #1237 BlockStatement.path accepts in practice PathExpression or Literal. Updates its definition to reflect this fact
Copy the full SHA f2211ddView commit details
Commits on Dec 23, 2015
-
Copy the full SHA ec64cf9View commit details
Commits on Sep 1, 2015
-
Copy the full SHA c13c7dfView commit details
Commits on Aug 22, 2015
-
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.
Copy the full SHA 452afbfView commit details -
Copy the full SHA 408192bView commit details -
Copy the full SHA 1c27408View commit details -
This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case. Partial fix for #1018
Copy the full SHA 91ffd32View commit details
Commits on Apr 8, 2015
-
Add undefined and null literal support
This adds the UndefinedLiteral and NullLiteral to AST. Fixes #990
Copy the full SHA 2d149e7View commit details
Commits on Feb 10, 2015
Commits on Jan 18, 2015
-
Avoid direct references to sexpr in statements
This allows us to avoid creating unnecessary AST nodes and avoids things like isHelper. Side effect of these changes is that @DaTa functions can now have data parameters passed to them.
Copy the full SHA 884bf15View commit details -
Update for proposed SubExpression dependency break
Avoids parsing against SubExpressions and instead inlines the content that a subexpression otherwise would have. This can still be based via duck typing so should not add much overhead to the compiler.
Copy the full SHA 999da73View commit details -
Copy the full SHA d567d9cView commit details -
Add support for dynamic partial names
Uses the subexpression syntax to allow for dynamic partial lookups. Ex: ``` {{> (helper) }} ``` Fixes #933
Copy the full SHA cb51b82View commit details
Commits on Dec 26, 2014
-
Copy the full SHA 9ff3dafView commit details
Commits on Nov 30, 2014
-
Copy the full SHA f84f76fView commit details
Commits on Nov 29, 2014
-
Copy the full SHA a655aedView commit details -
Rework strip flags to make clearer at in AST level
Rather than keeping state in the AST, which requires some gymnastics, we create a separate visitor flow which does the top down iteration necessary to calculate all of the state needed for proper whitespace control evaluation.
Copy the full SHA 928ba56View commit details
Commits on Nov 28, 2014
-
Copy the full SHA 95b2309View commit details