HTML_Template_IT pear.php.net Integrated Templates HTML_Template_IT is a templating engine designed to allow easy separation of concerns. It does this by clearly separating the presentational code from the PHP code. The presentation code may be of any format, however generally XML or HTML is used. This engine works on the foundation of blocks and placeholders. It uses the hierarchy of blocks to determine which presentational code is instantiated when blocks are parsed. The placeholders allow the insertion of "dynamic" information. There are two classes to use for templating. HTML_Template_IT is used for basic templating needs. HTML_Template_ITX gives you full power over the templating engine, allowing blocks to be added, and function callbacks to be used. Gregory Currie gregorycu gregorycu@php.net no Pierre-Alain Joye pajoye pajoye@php.net no David Soria Parra dsp dsp@php.net no Thorsten Rinne thorstenr thorstenr@php.net no Ulf Wendel uw ulf.wendel@phpdoc.de no 2018-01-22 1.3.1 1.3.0 stable stable Modified BSD license - PR #2: Fixes for deprecated code 4.0.0 1.4.0b1 1.1 1.1 stable stable 2003-03-11 Modified BSD license *BETA* release. 1.1.1 1.1.1 stable stable 2003-08-21 Modified BSD license - fix #4590, case sensitive method name getFile fix - fix #1453, haltOnWarning fix, wrong property name called - fix #3952, return IT_OK on success in setOptions 1.1.2 1.1.2 stable stable 2005-10-28 Modified BSD license - Comply better with the coding standards (dufuz@php.net) - Fixed Bug #5774 ITX->buildFunctionlist, forced to use {} as delimiters instead of the user defined once (dufuz@php.net) - Fixed Bug #5642 Undefined variable: blockname (dufuz@php.net) 1.1.3 1.1.3 stable stable 2005-11-01 Modified BSD license - Change to the new BSD License (see http://www.opensource.org/licenses/bsd-license.php) 1.1.4 1.1.4 stable stable 2006-04-12 Modified BSD license - #6084, fread raises warning when used with empty files - #7359, remove notices when a block is not yet defined - fix a bug introduced with some cleanup commit, in some cases, callbacks did not work anymore 1.1.5 1.1.5 stable stable 2006-06-13 Modified BSD license - #7611, wrong array initialized, the same object cannot be used for multiple templates 1.2.0 1.2.0 beta beta 2006-08-17 Modified BSD license - Deprecate $callbackobject parameter in setCallbackFunction - Introduce $expandCallbackParameters parameter to setCallbackFunction to support callbacks that expect to get the parameters in a regular way, not as an array - #7651, allow dots in placeholder and block names 1.2.1 1.2.1 stable stable 2006-08-25 Modified BSD license - Deprecate $callbackobject parameter in setCallbackFunction - Introduce $expandCallbackParameters parameter to setCallbackFunction to support callbacks that expect to get the parameters in a regular way, not as an array - #7651, allow dots in placeholder and block names - #7611, wrong array initialized, the same object cannot be used for multiple templates 1.3.0a1 1.2.1 alpha stable 2010-02-15 Modified BSD license - Add support for pear package 2.0 format - Remove support for pear package 1.0 format - Fix bug #9501, doller signs disapear if preg_match is used. - Fix bug #9783, don't remove variable which values follow the variable pattern To allow backwards compatbility an option preserve_input is added. If it is false, the old behaviour will be used and therefore those values will be deleted. Default is true, so new behaviour. - Fix bug #9853, problems with dots in placeholders or blocknames - Add option 'preserve_input' to only remove unkown variable that were present during setTemplate or lodaTemplatefile which is the behaviour before 1.3.0a1 - Fix bug #13935 - docblock is wrong - Improved PHPCS (Request #15039) 1.3.0a2 1.3.0 alpha stable 2010-02-16 Modified BSD license Fixed unit tests 1.3.0a3 1.3.0 alpha stable 2010-03-01 Modified BSD license - Fix bug #17129 - Added unit test 1.3.0 1.3.0 stable stable 2010-03-10 Modified BSD license Changes since last stable release (1.2.1): - Add support for pear package 2.0 format - Remove support for pear package 1.0 format - Fix bug #9501, doller signs disapear if preg_match is used. - Fix bug #9783, don't remove variable which values follow the variable pattern To allow backwards compatbility an option preserve_input is added. If it is false, the old behaviour will be used and therefore those values will be deleted. Default is true, so new behaviour. - Fix bug #9853, problems with dots in placeholders or blocknames - Fix bug #13935, docblock is wrong - Fix bug #17129 - Add option 'preserve_input' to only remove unkown variable that were present during setTemplate or loadTemplatefile which is the behaviour before 1.3.0a1 - Improved PHPCS (Request #15039) - Added unit tests - Fixed unit tests 1.3.1 1.3.0 stable stable 2018-01-22 Modified BSD license - PR #2: Fixes for deprecated code