Skip to content

Releases: mobicms/render

4.0.0

09 Dec 21:44
4.0.0
Compare
Choose a tag to compare

Added

  • PHP 8.2 support

Changed

  • Bumped minimum PHP version to 8.0
  • Various internal improvements

3.0.0

29 Jul 19:07
3.0.0
Compare
Choose a tag to compare

Added

  • Engine::addPath()
    Instead of three arguments of the old addFolder() method (namespace, default folder and search array),
    two arguments with a folder and optional namespace are used.

Changed

  • Specifying a namespace now is not mandatory.
    If it is not specified, it will be used main:: as default.
  • Engine::getFolder() renamed to Engine::getPath()
  • Various code improvements

Removed

  • Engine::addFolder()
  • TemplateFunftion class

2.1.0

27 Jul 20:16
2.1.0
Compare
Choose a tag to compare

Added

  • PHP 8.x support
  • Source code static analysis using Psalm
  • Checking coding standards using PHP_CodeSniffer
  • Test coverage report and code quality rating using Scrutinizer-CI
  • CI services using GitHub Actions

Changed

  • Used latest version of PhpUnit
  • Various code improvements

Removed

  • Drop support for PHP older than 7.4

2.0.0

22 Feb 09:21
Compare
Choose a tag to compare

Removed

  • Template::end()
  • Template::insert()

1.1.0

22 Feb 09:20
Compare
Choose a tag to compare

Added

  • Template::sectionAppend()
  • Template::sectionReplace()

Deprecated

  • Template::end()
  • Template::insert()

1.0.1

22 Feb 09:19
Compare
Choose a tag to compare

Changed

  • Small internal improvements

1.0.0

22 Feb 09:19
Compare
Choose a tag to compare

The development of this package started on the basis of league/plates v.3.3.0.
The purpose of the development was to simplify the source code as much as possible, get rid of the unnecessary and add the missing functionality.

Here are the most significant changes compared to the original packag.

Added

  • Each namespace can have one default (fallback) folder and optional several search folders.
    The template is searched sequentially across all of these folders, from the last to the first.
    The first template found will be used.
    If not found (or not specified), it will use the template specified by default.

Changed

  • All code rewritten to use PHP 7.2 or newer
  • All tests rewritten to use new PhpUnit 8.x
  • Specify a namespace and its path is mandatory.
    Now you cannot call template without specifying a namespace.
  • Namespace refactoring

Removed

  • Folder with example.
  • Documentation (After editing will be added again).
  • Removed all extensions that were delivered with the package.
  • Due to replacement with a new algorithm, removed old fallback folder functionality.
  • Removed existing classes and methods:
    [D] completely removed as unnecessary
    [C] covered by new functionality
    [S] replaced with simpler code
    • [S] Directory::class
    • [S] FileExtension::class
    • [S] Folder::class
    • [S] Folders::class
    • [S] Functions::class
    • [C] Engine::setDirectory()
    • [C] Engine::getDirectory()
    • [D] Engine::removeFolder()
    • [D] Engine::dropFunction()
    • [D] Engine::loadExtensions()
    • [D] Engine::path()
    • [D] Engine::exists()
    • [S] Engine::make()
  • Some other code that is not used.