PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT

Integrated Templates

This package is unmaintained.

Download latest release 1.3.3 (there might be newer Composer installable version)

License: BSD-3-Clause

Description

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.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#50BogusBug2003-09-30dollar sign parse bug
#139BogusBug2003-10-22Problems creating dynamic javascript reqular expressions
#192BogusBug2003-11-04No replacements = no output
#304Wont fixBug2003-11-27Feature Request: template file in include_path
#1096BogusBug2004-03-30about '$"
#1177ClosedBug2004-04-10missing (but semi-documented) hideBlock method
#1183Wont fixBug2004-04-12It's in wrong category in pear, it is not anyway limited to use only with HTML
#1453ClosedBug2004-05-20confused flag $haltOnWarning in ITX
#1474No FeedbackBug2004-05-22Cannot find this block 'blockname' always true
#1901BogusBug2004-07-17Paranthess { } lost...
#2040BogusBug2004-08-01$n in variable values swallowed
#2683BogusReq2004-11-03Can not parse templates containing no placeholders/blocks
#2833ClosedBug2004-11-26addBlockFile() bad Parameters documentation info
#3652BogusBug2005-02-28Templates eat expressions in variable values that are enclosed in braces.
#3686BogusBug2005-03-03Wrong parsing with \ in values
#3952ClosedBug2005-03-24HTML_Template_IT::setOptions() does not return IT_OK on success
#4392BogusBug2005-05-20truncate $[0-99] in the Variable?!
#4590ClosedBug2005-06-14HTML_Template_IT::getfile doesn't exist
#4699BogusBug2005-06-29Needs to mention backslash-output behaviour
#4759BogusBug2005-07-06$ [output error]
#5092BogusReq2005-08-14Bad: HTML_Template_IT::setOptions() 2x return
#5171ClosedBug2005-08-21Missing package file
#5642ClosedBug2005-10-10Undefined variable: blockname
#5774ClosedBug2005-10-25HTML_Template_ITX->buildFunctionlist
#6084ClosedBug2005-11-26fread now gives a warning on zero length templates
#6160No FeedbackBug2005-12-05unused vars in __global__ removes the block
#6929No FeedbackBug1.1.32006-02-24Some nested blocks do not parse correctly
#7179BogusBug1.1.32006-03-22Backslashes will not printed out correctly
#7278BogusBug1.1.32006-04-02parse-problem
#7359ClosedBug1.1.32006-04-10-
#7460BogusBug1.1.42006-04-23PHP notice
#7611ClosedBug1.1.42006-05-12Typo in IT.php
#7651ClosedReqCVS2006-05-17Allow dot separated variables and blocks
#7962BogusBug1.1.42006-06-22$[0-9][0-9] in replacements get lost
#8255BogusBug1.1.42006-07-20Outer variables parse problem after parsing nested
#9397BogusBug1.2.12006-11-20getFile() using fread() does not read whole file
#9501ClosedBug1.2.12006-11-29incorrect parsing of string literal with setVariable()
#9577BogusReq1.2.12006-12-07Nested Variable Tags
#9753Wont fixReq1.2.12007-01-05Template rendering fails silently if invalid root supplied
#9783ClosedBug1.2.12007-01-09some words between "{" and "}" are missing displayed!
#9853ClosedBug1.2.12007-01-17problems with dot in blockname
#10050ClosedBug1.2.12007-02-07Touched blocks do not respect removeUnknownVariables
#10101ClosedBug1.2.12007-02-14Unknown Variables are not always removed
#10120BogusReq1.2.12007-02-18I need add comment feathre
#11468BogusReq1.2.12007-06-28Need PHP5 complaint Class
#12095No FeedbackBug1.2.12007-09-21Doesn't cope with plain templates
#12813AssignedReq1.2.12008-01-02Make setOption() useful, or provide accessors
#13364No FeedbackBug1.2.12008-03-10Example code does not produce expected results?
#13935ClosedDoc1.2.12008-05-18Possible Typing Error
#14097No FeedbackBug1.2.12008-06-06Multiple INCLUDE on one line don't work -- wrong RegExp
#15039ClosedReqCVS2008-11-14PHPCS: A TOTAL OF 1 ERROR(S) AND 31 WARNING(S) WERE FOUND IN 2 FILE(S)
#17129ClosedBug1.3.0a22010-02-18Superfluous placeholder replacement
#17329BogusBug1.3.02010-04-20IT doesn't set variables outside blocks after blocks got parsed
#17877VerifiedBug1.3.02010-09-20Not always replacing placeholders in added blocktemplates
#20571OpenBug1.3.02015-07-14ITX function call in block
#20956ClosedBug1.3.02015-10-01preg_replace(): The /e modifier is deprecated
#21056OpenDoc1.3.02016-04-22Minor fault in Introduction
#21192DuplicateBug1.3.02017-03-07Deprecated Call to preg_replace with 'e' flag in function getFile
#23764OpenBug1.3.12018-09-02Contains deprecated each()