is a new template engine for PHP, similar in spirit to Smarty.<p style="text-align:left;font-family:CourierNew;">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.</p><p style="text-align:left;font-family:CourierNew;">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.</p>
To install Sugar, simply copy the Sugar.php file into the PHP
include path. Then copy the Sugar/ folder and its contents into the
same folder in which Sugar.php is installed.
The default templates folder for the file storage driver is
./templates/, relative to the working directory of the application.
The compile directory is ./templates/compiled/ which must be writable
by the application (e.g. the Apache user) in order to work. The
default cache directory is ./templates/cache/ which also must be
writable to work.