Sugar
Home

Sugar is a new template engine for PHP, similar in spirit to Smarty.

A powerful and flexible compilation engine which allows for powerful expressions similar to that of PHP itself. It also features a clean and easy to understand syntax, which was created with the average designer in mind.

Security is a strength of Sugar. For example, output is HTML-escaped by default, instead of requiring explicit escaping like PHP itself, which makes it far less likely to accidentally introduce an HTML or JavaScript code injection vulnerability from user-submitted content.

Sites using Sugar include:

• Recent News Articles •

Version 0.83
Another release of Sugar is out! This version is the beginning of our final stretch towards 1.0. Aside from a few corner cases that need refinement, the Sugar syntax is now final and will not be changing in future releases. The API is also nearly complete and final.
READ MORE
ConfigBuilder
A new module click here ConfigBuilder, is available in the Sugar PEAR repository.
READ MORE
PEAR Channel Available
A PEAR channel for Sugar is now available at http://pear.php-sugar.net/ .
READ MORE
Version 0.82
A new release of Sugar is out! This version sports several critical new features, including layout templates and function escaping control.
READ MORE
Version 0.81
Released the latest version of Sugar. There are several noteworthy feature additions, including modifiers and method ACL support. Check out the NEWS and README files for more information on this release.