Releases: rawsrc/PhpEcho
New Release: bug pushing files
I don't know why the last push did not work. This release is up to date now.
You have now the possibility to define a global parameter that will be available through all PhpEcho instances using
PhpEcho::setGlobalParam()
and read using PhpEcho::getGlobalParam()
New feature: global parameter definition
Minor update of 4.0.1
You have now the possibility to define a global parameter that will be available through all PhpEcho instances using
PhpEcho::setGlobalParam()
and read using PhpEcho::getGlobalParam()
BugFix
New release - PHP 8+
PhpEcho : Pure PHP template engine
Is only compatible with PHP 8 and above.
New release : version 3.0.1 - Bugfix
Bugfix : in stdPhpEchoHelpers.php, add the use rawsrc\PhpEcho\PhpEcho;
in the header
New release : version 3.0.0
Many code improvements. Adding some features asked by different users.
Check Readme.md for details.
rawsrc
New release : version 2.3.2
This is the last release for the branch 2.x
This is a stable version, no more improvements or updates apart for bugfixes.
Change the signature of addChild()
.
Now when creating a new child block, it's possible in the same time to link it to a var in the current creator scope.
// before
// $parent block create a child block from its local path
$child = $parent->addChild('path to the file' /*, other params */);
$parent['any_var'] = $child; // the child is linked to its parent
// now
$child = $parent->addChild('any_var', 'path to the file' /*, other params */);
// internally the link is created automatically if the var is defined
$parent['any_var'] = $child
New release : version 2.3.1
NEW FEATURES IN PhpEcho v.2.3.1:
- Each PhpEcho instance can now define their own parameters.
- Parameters remain raw value and are never escaped.
- The engine will always seek for a parameter value from the current block to the root.
Changelog:
The helper param()
becomes officially a method of PhpEcho class
The old helper param()
is renamed to rootKey()
New helper : $seek_param
New release : version 2.3.0
New features :
- Preserve the type of value using array notation and escaping only when necessary
- The way to access to the
<head></head>
is updated : thehead()->add()
is replaced byaddHead()
andhead()->render()
byhead()
- New helpers added in the standard library
Bugfix and return stored values (objects) as it
Bugfix on helpers: $script
and $style
when use only plain code.
Now the returned value using the array access notation preserve any class instance even if the instance implements the magic method __toString()