[Smarttemplate-cvscommit] smarttemplate class.smarttemplate.php, 1.8, 1.9
Brought to you by:
codeworxtech
|
From: EndelWar <end...@us...> - 2006-08-23 19:45:52
|
Update of /cvsroot/smarttemplate/smarttemplate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv25772 Modified Files: class.smarttemplate.php Log Message: Added first attempt to Variable Delimiters Index: class.smarttemplate.php =================================================================== RCS file: /cvsroot/smarttemplate/smarttemplate/class.smarttemplate.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** class.smarttemplate.php 23 Jul 2006 11:00:46 -0000 1.8 --- class.smarttemplate.php 23 Aug 2006 19:45:49 -0000 1.9 *************** *** 25,28 **** --- 25,30 ---- * @author Philipp v. Criegern ph...@cr... * @author Manuel 'EndelWar' Dalla Lana end...@ar... + * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License + * @package SmartTemplate * @version 1.2.1 03.07.2006 * *************** *** 71,74 **** --- 73,92 ---- /** + * Default Left delimiter + * Can be overwritten by global configuration array $_CONFIG['left_delimiter'] + * + * @access public + */ + var $left_delimiter = '{'; + + /** + * Default Right delimiter + * Can be overwritten by global configuration array $_CONFIG['right_delimiter'] + * + * @access public + */ + var $right_delimiter = '}'; + + /** * Temporary file for output cache storage * *************** *** 277,289 **** if (@include_once("class.smarttemplateparser.php")) { ! $this->parser = new SmartTemplateParser($this->template_dir . $this->tpl_file); if (!$this->parser->compile($this->cpl_file)) { ! exit( "SmartTemplate Parser Error: " . $this->parser->error ); } } else { ! exit( "SmartTemplate Error: Cannot find class.smarttemplateparser.php; check SmartTemplate installation"); } } --- 295,312 ---- if (@include_once("class.smarttemplateparser.php")) { ! $this->parser = new SmartTemplateParser; ! $this->parser->template_dir = $this->template_dir; ! $this->parser->tpl_file = $this->tpl_file; ! $this->parser->left_delimiter = $this->left_delimiter; ! $this->parser->right_delimiter = $this->right_delimiter; ! if (!$this->parser->compile($this->cpl_file)) { ! exit("SmartTemplate Parser Error: " . $this->parser->error); } } else { ! exit("SmartTemplate Error: Cannot find class.smarttemplateparser.php; check SmartTemplate installation"); } } *************** *** 293,297 **** else { ! exit( "SmartTemplate Error: You must set a template file name"); } // Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script --- 316,320 ---- else { ! exit("SmartTemplate Error: You must set a template file name"); } // Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script |