Skip to content

Releases: FoilPHP/Foil

v0.6.7

04 May 06:56
Compare
Choose a tag to compare

Added

Nothing

Changed

  • The rendered output is not trimmed anymore. See #44. Thanks to @barryo

Fixed

Nothing

v0.6.6

26 May 23:01
Compare
Choose a tag to compare

Added

  • $this->clear() method, to empty a layout section entirely

Changed

Nothing

Fixed

Nothing

v0.6.5

08 Mar 10:15
Compare
Choose a tag to compare

Added

Nothing

Changed

Nothing

Fixed

  • Issue with nested blocks having callbacks that receives arguments - See #32
  • Issue when same section in replace mode is present more than once in same template - See #34

v0.6.4

22 Feb 20:09
Compare
Choose a tag to compare

Added

Nothing

Changed

  • Template object has dependency to section factory and not to sections. No API change.

Fixed

  • supply() issue when same engine instance is used more than once (see #31)
  • SectionInterface::MODE_REPLACE causes template inheritance to fail (see #30)

v0.6.3

01 Nov 19:55
Compare
Choose a tag to compare

Fixed bug when rendering template files containing sections more then once using same engine instance.

v0.6.2

06 Jul 01:08
Compare
Choose a tag to compare

Fixed Git issue with tests folder names.

v0.6.1

04 Jul 21:51
Compare
Choose a tag to compare
  • Fixed a couple of minor issue
  • Implemented code coverage logging and codecov.io
  • Added more unit tests
  • Added badges on readme

v0.6.0

03 Jul 15:31
Compare
Choose a tag to compare

New Features, Issues Solved

  • Introduced Blocks and Custom Blocks feature
  • Introduced "alias" feature that shorten syntax to access variables and functions inside templates
  • Introduced Section Rendering feature
  • Better control on registered folders, see docs.
  • Engine::render(), Engine::find() and Finder::find() now also accepts an array of template names to be searched in registered folders. The first found is returned.
  • Introduced Foil\Foil class
  • Fixed issue on arraization of objects
  • Clean up & code style improvements

Backward Compatibility Breaks

  • Foil\API class has been removed
  • Foil\Contracts\APIAwareInterface has been removed
  • Foil\Traits\APIAwareTrait has been removed
  • Foil\Bootstrapper class has been removed
  • Most of the API functions have been removed. See docs.
  • Foil\engine() functions now always returns a "fresh" instance of Foil\Engine class, whereas in older versions always returned same instance when called more times.

v0.5.1

25 May 21:53
Compare
Choose a tag to compare

CS and typo fix. Minor clean up.

v0.5.0

25 May 13:58
Compare
Choose a tag to compare

Easing the process of using custom template classes.

  • private methods in Template class have been changed to protected
  • introduced 'template_class' engine option
  • add a third argument, $class, for the Engine::renderTemplate() method