Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Releases: younishd/endobox

4.3.0

24 Jun 12:38
Compare
Choose a tag to compare

Added

  • Invoke Box with array to assign data.

4.2.0

01 Jan 15:42
Compare
Choose a tag to compare

Added

  • $endobox('foo')('bar') is now equivalent to ($foo = $endobox->create('foo'))->append($endobox->create('bar')->link($foo))
  • Add Box::create() in the same fashion as the $box() function within templates

Changed

  • Overload Box::append() and Box::prepend(): argument can now be of type Box or string where the latter will instantiate a new Box before appending/prepending it

4.1.0

09 Nov 16:00
Compare
Choose a tag to compare

Added

  • Add link() as alias for the cryptic (and now deprecated) entangle()
  • Render partial templates with $box() or $b() (i.e., nesting)

Changed

  • Improved documentation in single README file

4.0.0

22 Jan 23:04
Compare
Choose a tag to compare

Added

  • Render variable as $markdown()
  • Assigned closures can now be called like a function and be given arguments. What a time we live in!
  • composer test replacing test.sh

Changed

  • PHP template will now stfu when @ operator is used
  • Fix sneaky bug in union-find path compression
  • Make library (even more) DI-friendly: Get rid of container code and provide a Facade with a good default combination of appropriate dependencies (We learn something every day.)

3.0.1

23 Sep 21:32
Compare
Choose a tag to compare

Added

Changed

  • Bugfix: Endobox::create should be static

3.0.0

23 Sep 20:56
Compare
Choose a tag to compare

Added

  • Endobox bootstrap class

Changed

  • Use a bootstrap class and inject Factory dependencies
  • Fix minor bug in Factory: NullRenderer was being instantiated multiple times for no reason
  • Travis-ci using test.sh and installing require-dev packages

2.4.0

01 Mar 23:45
Compare
Choose a tag to compare

Added

  • Boxes can now be cloned (using clone)

Changed

  • Bugfix: Counter variable from foreach loop (called $x) was visible inside templates

2.3.2

01 Mar 17:03
Compare
Choose a tag to compare

Added

Changed

  • Cleaner box factory using a DI container (pimple) for the Parsedown libs
  • Get rid of copy-paste MarkdownExtraRendererDecorator class

2.3.1

01 Mar 03:11
Compare
Choose a tag to compare

Added

Changed

  • Throw RuntimeException if cycle (endless loop) is detected at render time
  • More unit tests
  • Improved README with nice figures

2.3.0

26 Feb 03:34
Compare
Choose a tag to compare

Added

Feature: Support assigning closures as data

Changed