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:

  1. 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.
  2. 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).
  3. 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

  1. Write a management class for the cache files.

0.4

  1. Documentation!
  2. Stabilization
  3. Namespace support (PHP 5.3)
  4. Security options
  5. Better error handling and syntax checker.

Example

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.

Speed Comparison

Beilpuz it not only easy, its really fast too, due its small core.

Documentation

  1. Please read the Documentation section how to use and extend Beilpuz.
  2. For advanced users: Read the PhpDoc auto-generated API documentation.
  3. There is a Changelog for the older Beilpuz 0.2
  4. If you want to contact me, please use this email address: <beilpuzATget-mike.de>
  5. Visit the Beilpuz Sourceforge Project Homepage: https://sourceforge.net/projects/beilpuz/

Report Bugs

Use the Mantis Bugtracker for reporting bugs.

Download

Please read the installation or upgrade instructions.

 
start.txt · Last modified: 2010/02/12 18:25 by rebell
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki