SugarNewsWikiDocsBugsForumFilesSource LoginRegister
Home
Forum Discuss Sugar Bug Tracker Report a Bug Download Get Sugar

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

A powerful and flexible compilation engine is used 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 •

PHP-Sugar 0.80
The latest release of PHP-Sugar is here! 0.80 brings numerous improvements, along with a series of syntax changes (for the better). Function calls in particular have received a lot of love.
read more
Version 0.74
The new version includes a handful of bug fixes, several new template functions, modified (fully backwards compatible) syntax for array and object accessors, and a template function reference building tool.
Version 0.73
A new version has been released which includes bug fixes for caching with debug mode on, fixes for running with E_STRICT error reporting enabled, and some other minor bug fixes.
Version 0.72
Version 0.72 of PHP-Sugar has just been released! The new version includes some minor fixes and function additions, as well as important new caching functionality. HTML caches now check all included source files to see if the cache is outdated, ensuring that you're never stuck having to manually clear your cache after template edits. This is the final last major feature PHP-Sugar has been missing, and puts us well on our way to a 1.0 release!
New Site
Welcome to the new PHP-Sugar website! This site will host the project resources, except for Subversion which will remain with Google Code.