Skip to content

2.1.0 Uncontrolled Space

Choose a tag to compare

@theodorejb theodorejb released this 26 Apr 15:35
· 4 commits to master since this release

Added

  • parseWithoutProcessing() method.

Changed

  • Optimized whitespace control and lexer position advancement.
  • Removed underscore from PathExpression::this_ to align with the Handlebars.js AST.

Fixed

  • Close tag indentation wasn't consistently stripped from chained {{else if}} branches of a standalone block.
  • Tilde whitespace control in one {{~else if}} branch unexpectedly leaked onto unrelated branches.

Both of the above issues stemmed from bugs in the Handlebars.js parser, and I opened PR handlebars-lang/handlebars-parser#31 to also fix them there.