Beilpuz is a minimalistic template rendering engine (compiler) built to be simple and fast.
It is very easy to extend and supports full or staged intelligent template caching.
Im proud to present the best and fastest version of Beilpuz: 0.3.
Here is the changelog:
Signature handlers are now class-based and no more structural functions.
Therefore: Signature handlers from older versions (0.2) are incompatible with 0.3.
Writing own signature handlers is now more consistent, easier and logic.
Autoloading plugins (no more use the use attribute).
That enables advanced features like conditions with if, elseif and else which have already been implemented.
Beilpuz is now able to render templates without storing the compiled output on filesystem.
Thats a very useful feature which makes Beilpuz a bit slower, but faster in special situations anyway:
http://beilpuz.get-mike.de/bench/ (Beilpuz beats Outline and Dwoo and … of course, Smarty).
Since beta 1 its possible to update the signatures during runtime.
Object-oriented
PHP 5 code.
-
Template compiler.
Cachable and non-cachable template areas.
XML-like parser tags (called Beilpuz signatures).
Easy to install, to use, to learn and to extend.
Write a management class for the cache files.
Documentation!
Stabilization
Namespace support (
PHP 5.3)
Security options
Better error handling and syntax checker.
include('../bp/Beilpuz.php');
$template = new BpTemplate();
$template->fromString('<li><bp:$text/></li>');
$template->assign('text', 'Hello World!');
echo $template->render();
$template->assign('text', 'Im a simple template');
echo $template->render();
This is a very simple example which doesnt show the real advantages of Beilpuz.
You can see this example in action or take a look at advanced examples.
Beilpuz it not only easy, its really fast too, due its small core.
-
-
There is a
Changelog for the older Beilpuz 0.2
If you want to contact me, please use this email address: <beilpuzATget-mike.de>
-