Projects / Blitz templates for PHP

Blitz templates for PHP

Blitz templates is a fast PHP template engine written in C and compiled as a PHP extension. It started as a php_templates replacement, but developed into much more. It is based on extensible template controllers (custom view classes in PHP) and weakly-active templates (simple logic in HTML). Benchmarks show that it is one of the fastest template engines for PHP, even though it's not trivial and makes Web application closer to a smart MVC-like architecture model with maximal separation of HTML from your code. It was designed for big high-load Internet projects with a lot of complex presentation logic.

Tags
Implementation
Translations

Recent releases

  •  18 Jun 2012 15:18

    Release Notes: This release fixes a parsing error with comments enabled and long custom comment tags.

    •  04 Jun 2012 15:55

      Release Notes: A parsing error was fixed (an incorrect code fragment broke the next correct one). Array-to-string conversion for variables doesn't add "Array" string to the output and shows a human-readable warning. After several weeks of testing 0.7.2+patches in production, it was named 0.8.1 and marked stable.

      •  21 May 2012 09:40

        Release Notes: A critical parsing error was fixed: occasionally tags with useless spaces inside could be skipped. Error handling was also improved: the method getError() was added, the method load() was fixed to return false on errors, and exceptions are thrown optionally when blitz.throw_exceptions is set to 1 (0 by default).

        •  06 May 2012 08:34

          Release Notes: This is the first release with HTML output escaping. Auto-escaping is enabled with a new blitz.auto_escape constant (off by default). Basic filters support was added through {{ $var | filter }} syntax. Only "raw" and "escape" filters are supported, and only for variables. The blitz.charset constant was removed; the engine should use default PHP settings. Please note that the internal HTML extension was improved in 5.4.0 and some escaping features don't work in prior versions, such as disallowed Unicode characters.

          •  21 Mar 2012 16:54

            Release Notes: This release improves performance and fixes PHP-5.4.* compilation issues.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.