Skip to content

0.10.0

Compare
Choose a tag to compare
@teppokoivula teppokoivula released this 03 Mar 18:59
· 199 commits to master since this release

Added

  • New class Partials. Container for Partial objects. Provides a gateway for rendering partials with arguments ($partials->name(['arg' => 'val'])).
  • New class Partial. Singular Partial object. Provides the ability to render a partial and adds support for multiple (alternate) file extensions for each partial.
  • New class Factory. This class encapsulates various static factory methods and is accessed through the Wireframe class.
  • New static method Wireframe::partial($partial_name, $args). This method provides a shortcut for rendering partial files.
  • New method Wireframe::setViewTemplate(). This allows overriding current view template via the Wireframe object, primarily intended to be used in the Wireframe bootstrap file.

Changed

  • Shared renderer related features were moved to new trait RendererTrait. This is used internally by View, Component, and Partial classes.