/** * PHPTAL templating engine * * PHP Version 5 * * @category HTML * @package PHPTAL * @author Laurent Bedubourg <*****@*****.**> * @author Kornel LesiĆski <*****@*****.**> * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @version SVN: $Id$ * @link http://phptal.org/ */ define('PHPTAL_VERSION', '1_3_0'); PHPTAL::autoloadRegister(); /** * PHPTAL template entry point. * * <code> * <?php * require_once 'PHPTAL.php'; * try { * $tpl = new PHPTAL('mytemplate.html'); * $tpl->title = 'Welcome here'; * $tpl->result = range(1, 100); * ... * echo $tpl->execute(); * } * catch (Exception $e) { * echo $e;