Releases: rawsrc/PhpEcho
Version 5.2.0
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
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
Code optimization and logic
Changelog v5.1.0:
- The method
getHelper(string $name): Closure
is not static anymore - The equivalent static is now defined as
getHelperBase(string $name): Closure
- The method
isHelper(string $name): bool
does not throw anyException
anymore and only returns a strict boolean - 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
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
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
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
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
This release fix the error in the namespace used in stdPhpEchoHelpers.php
Minor update: file's header declaration
Just to have the most complete list of use function
in the file's header
Correct composer.json
This release is just for the correct composer.json autoloader file.