Skip to content

Releases: rawsrc/PhpEcho

Version 5.2.0

29 Jan 16:22
Compare
Choose a tag to compare

This new version does not consider space as directory separator anymore. Space is preserved in the file path.

Read carefully the changelog in the README.md.
This upgrade may impact deeply the code of the view files.

Test files updated
Tests passed

Minor Update : injecting the standard helpers library

01 Dec 09:30
Compare
Choose a tag to compare

Minor Update:
The standard helpers library is now injected automatically once.
The previous code is still compatible, you can still manually inject the standard helpers library

Minor update

12 Oct 11:00
Compare
Choose a tag to compare

Code optimization and logic

Changelog v5.1.0:

  1. The method getHelper(string $name): Closure is not static anymore
  2. The equivalent static is now defined as getHelperBase(string $name): Closure
  3. The method isHelper(string $name): bool does not throw any Exception anymore and only returns a strict boolean
  4. Internally some code optimization and better logic segmentation: new method getHelperDetails(string $name): array

Your code is not impacted by this update unless your worked with method getHelper() which becomes getHelperBase()

New standard helper added

13 Sep 15:51
Compare
Choose a tag to compare

Add new helper to the standard helper library: renderIfNotSet(string $key, mixed $default_value)
If the key is not defined in the stored key-values pairs of PhpEcho then render the default value instead of throwing an Exception

Similar to renderByDefault() for a block but this is for a scalar

Add test code: stdHelper_039 routine

New version of the engine

06 Sep 09:30
fa16361
Compare
Choose a tag to compare

Version 5.0.0

Many code improvements
Remove the constants HELPER BOUND_TO_CLASS_INSTANCE and HELPER_RETURN_ESCAPED_DATA
Add a new method to easily inject anonymously a child block into the current : renderBlock()
Fully tested : the core and helpers have been fully tested using https://github.com/rawsrc/exacodis

Breaks the compatibility only with the code used to manage the helpers, the code used to generate the views is still up to date 👍

Minor update, reserved key for vars: raw

28 Jan 08:38
Compare
Choose a tag to compare

Minor update:
New feature: reserved key word for vars raw
Everything in vars starting with key raw is never escaped
Equivalent to the helper $this->raw() but with native support:
$this['raw foo'] <=> $this->raw('foo')

Minor code improvements

Minor update: static method to get the full path file from segments

22 Jan 15:55
Compare
Choose a tag to compare

New static method: getFullFilepath(string $path) to get the full path file of a view file from its last named segments.
Prepend automatically the path with the defined template dir root in the bootstrap.

Careful: every space in the path is read as DIRECTORY_SEPARATOR.

Bugfix in namespace

15 Dec 18:30
Compare
Choose a tag to compare

This release fix the error in the namespace used in stdPhpEchoHelpers.php

Minor update: file's header declaration

02 Dec 11:08
Compare
Choose a tag to compare

Just to have the most complete list of use function in the file's header

Correct composer.json

13 Nov 10:27
Compare
Choose a tag to compare

This release is just for the correct composer.json autoloader file.