Skip to content

Releases: devtheorem/php-handlebars

0.9.9 Stringable Conditions

15 Oct 19:08

Choose a tag to compare

Added

  • Allow Stringable variables in if statements (#8).

Fixed

  • Raw lookup when key doesn't exist (#3).
  • Spacing and undefined variable for each block in partial (#7).

0.9.8 String Escaping

20 May 14:56

Choose a tag to compare

Added

  • Handlebars::escapeExpression() method (equivalent to the Handlebars.escapeExpression() utility function in Handlebars.js).

Removed

  • Unnecessary $escape parameter on SafeString constructor.

Fixed

0.9.7 Resolvers

04 May 17:55

Choose a tag to compare

Added

  • helperResolver and partialResolver compile options for dynamic handling of partials and helpers (#1).

0.9.6 Partial Indentation

20 Apr 21:19

Choose a tag to compare

Fixed

0.9.5 Block Parameter Parsing

31 Mar 03:18

Choose a tag to compare

Fixed

0.9.4 String Arguments

23 Mar 20:28

Choose a tag to compare

Fixed

0.9.3 Raw Block Parsing

20 Mar 22:42

Choose a tag to compare

Fixed

0.9.2 Arrow Function Helpers

19 Mar 22:27

Choose a tag to compare

Added

Fixed

0.9.1 Better Return Type

18 Mar 19:22

Choose a tag to compare

Added

  • Detailed return annotation for compile() method.

0.9.0 Modern Cleanup

18 Mar 17:53

Choose a tag to compare

Initial release after forking from LightnCandy 1.2.6.

Added

  • New compile method which takes a template string and options and returns an executable Closure.

Changed

  • PHP 8.2+ is now required.
  • Replaced compile options array with Options object.
  • Replaced helper options array with HelperOptions object.
  • Renamed old compile method to precompile.
  • Replaced prepare method with much faster template method, and removed dependency on URL include and filesystem write access.

Fixed

Removed

  • Custom autoloader.
  • Used feature tracking.
  • Option to change delimiters.
  • partialresolver option.
  • compilePartial method.
  • prepartial callback option.
  • renderex option to inject compiled code.
  • Option to change runtime class.
  • HTML documentation.
  • Dozens of unnecessary feature flags.