Please see our public website, located at http://php-sugar.net.
Introduction to PHP-Sugar
PHP-Sugar is a new template engine for PHP, similar in intent 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 PHP-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.
Examples
These are the tests used for development of PHP-Sugar.
The following sites make use of PHP-Sugar for their templating system.
Documentation
- SugarSyntax - Basic syntax tutorial
- SugarApi - Basic API tutorial
- ExtendingSugar - Extending the storage and cache drivers
- SugarVsSmarty - Comparison to the Smarty engine