HTML_Template_ITpear.php.netIntegrated TemplatesHTML_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 Curriegregorycugregorycu@php.netnoPierre-Alain Joyepajoyepajoye@php.netnoDavid Soria Parradspdsp@php.netnoThorsten Rinnethorstenrthorstenr@php.netnoUlf Wendeluwulf.wendel@phpdoc.deno2018-01-221.3.11.3.0stablestableModified BSD license
- PR #2: Fixes for deprecated code
4.0.01.4.0b11.11.1stablestable2003-03-11Modified BSD license
*BETA* release.
1.1.11.1.1stablestable2003-08-21Modified 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.21.1.2stablestable2005-10-28Modified 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.31.1.3stablestable2005-11-01Modified BSD license
- Change to the new BSD License
(see http://www.opensource.org/licenses/bsd-license.php)
1.1.41.1.4stablestable2006-04-12Modified 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.51.1.5stablestable2006-06-13Modified BSD license
- #7611, wrong array initialized, the same object cannot be
used for multiple templates
1.2.01.2.0betabeta2006-08-17Modified 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.11.2.1stablestable2006-08-25Modified 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.0a11.2.1alphastable2010-02-15Modified 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.0a21.3.0alphastable2010-02-16Modified BSD license
Fixed unit tests
1.3.0a31.3.0alphastable2010-03-01Modified BSD license
- Fix bug #17129
- Added unit test
1.3.01.3.0stablestable2010-03-10Modified 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.11.3.0stablestable2018-01-22Modified BSD license
- PR #2: Fixes for deprecated code