{{wiki:beilpuz.jpg|Beilpuz}} ====== Welcome to Beilpuz Template Engine ====== 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. ===== Introducing Beilpuz 0.3 ===== 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. * That enables a feature which can be used to write collector signatures. ===== Feature list ===== * Object-oriented PHP 5 code. * Open Source (LGPL). * 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. ==== Roadmap ==== === 0.3 final === - Write a management class for the cache files. === 0.4 === - **Documentation!** - Stabilization - Namespace support (PHP 5.3) - Security options - Better error handling and syntax checker. ===== Example ===== include('../bp/Beilpuz.php'); $template = new BpTemplate(); $template->fromString('
  • '); $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 [[http://beilpuz.get-mike.de/bp0.3/examples/01-simple template.php|see this example in action]] or take a look at [[bp0.3:examples|advanced examples]]. ===== Speed Comparison ===== Beilpuz it not only easy, its really fast too, due its small core. * See how Beilpuz is [[Speed Comparison#Smarty|faster than Smarty]]. * Beilpuz battles with other template engines in the independent [[http://beilpuz.get-mike.de/bench/|Template Benchmark Arena]] ===== Documentation ===== - Please read the [[bp0.3:documentation|Documentation section]] how to use and extend Beilpuz. - For advanced users: Read the PhpDoc auto-generated [[http://beilpuz.get-mike.de/bp0.3/doc|API documentation]]. - There is a [[bp0.2:changelog|Changelog]] for the older Beilpuz 0.2 - If you want to contact me, please use this email address: - Visit the Beilpuz Sourceforge Project Homepage: https://sourceforge.net/projects/beilpuz/ ===== Report Bugs ===== Use the [[https://sourceforge.net/apps/mantisbt/beilpuz/|Mantis Bugtracker]] for reporting bugs. ===== Download ===== Please read the [[bp0.3:documentation#installation]] or [[bp0.3:documentation#upgrade_instructions|upgrade]] instructions.\\ * [[https://sourceforge.net/projects/beilpuz/files/beilpuz%200.3%20beta%202.zip/download|Beilpuz 0.3 beta 2.zip]]