Skip to content

Releases: xp-forge/handlebars

8.0.0: Helpers precedence

08 Oct 12:35

Choose a tag to compare

  • Merged PR #23: Add support for literal segments, e.g. notations
    like array.[0].[item-class].
    (@thekid)
  • Merged PR #22: Give helpers precedence over input properties.
    Heads up: This creates a BC break, {{date}} will now invoke
    the date helper instead of selecting the date property from the
    current context!
    (@thekid)

7.1.1: Nested loops fix

11 Sep 11:45

Choose a tag to compare

  • Fixed @first and @last inside nested each loops - @thekid

7.1.0: Parent "this"

03 Sep 07:57

Choose a tag to compare

7.0.1: PHP 8.2 compatiblity

27 Feb 09:11

Choose a tag to compare

  • Fixed "Creation of dynamic property" warnings in PHP 8.2 - @thekid

7.0.0: Drop XP 9 and lower, add XP 11

21 Oct 18:21

Choose a tag to compare

6.2.0: Parser accessibility

13 May 14:08

Choose a tag to compare

  • Merged PR #20: Make it possible to exchange the parser - @thekid

6.1.1: Partials fix

11 May 14:26

Choose a tag to compare

  • Fixed partials with parameters being used inside each - @thekid

6.1.0: Parent of parent, root and outer iteration access

09 May 14:14

Choose a tag to compare

  • Added support for repeating parent selector ../ to form lookups such
    as ../../name, see pull request #19
    (@thekid)
  • Added support for accessing outer iteration via e.g. ../@index or
    ../@key, see pull request #19
    (@thekid)
  • Added support for @root, implemented feature request #18 - @thekid

6.0.1: Nested contexts fix

02 May 13:49

Choose a tag to compare

  • Fixed nested contexts inside {{#each}}...{{/each}} - @thekid

6.0.0: Block params, else if, log levels

02 May 13:35

Choose a tag to compare

  • Changed log helper to use level="..." argument to control log level,
    and its default to use loglevel info, aligning it with HandlebarsJS.
    See https://handlebarsjs.com/guide/builtin-helpers.html#log
    (@thekid)
  • Merged PR #17: Add support for else if as syntactic sugar for nested
    if / else cascades
    (@thekid)
  • Merged PR #16: Add support for each with block params. This pull request
    also includes a more efficient iteration algorithm as a side-effect.
    (@thekid)
  • Made compatible with xp-forge/mustache version 7.0, which emits single
    quotes as '.
    (@thekid)