Update:Archive/2.0/Developers/Templates
Update: Home Page » Suggestions » Templates
Templates Discussion http://www.sitepoint.com/forums/showthread.php?threadid=123769 http://wact.sourceforge.net/index.php/TemplateView
A template engine for the web should meet certain criteria. For me, this criteria is the following: http://wact.sourceforge.net/index.php/GoodTemplateSmells 1. Pass the Dreamweaver test. 2. Simplicity. 3. Validating. 4. Cacheable. 5. Self-Inspecting. 6. Secure. 7. Flexibility.
morgamic's take
A solid application structure could eliminate the need for a comprehensive templating engine. Wrapping HTML output is a relatively simple task done by using includes in parallel with proper use of CSS. I always question templating that extends beyond that in terms of complexity.
As with PEAR::DB or adodb, I think the use of a templating engine should only be considered if it is the right thing to do.
That said, I question whether adding the layer of complexity and adding another dependency is really necessary if we can use CSS for all of our presentation.
Don't get me wrong -- I'd definitely like to se HTML wrapped in functions where appropriate and a good segregation of PHP and HTML in order to have some sort of uniformity and structure when it comes to each .php script. I think that is a great goal and should definitely be realized in any good application.
But if we can use CSS properly, all HTML output will be exactly the same with the exception of DOM identifiers when appropriate, using templating or skinning the whole app should be reduced to a matter of switching stylesheets. From there, it's just a matter of packaging your markup properly, which is not something I see us needing a separate tool for.
1. PHP (yep PHP itself is a template engine)<br /> 2. <a href="http://smarty.php.net">Smarty</a><br /> 3. XSLT - technically XSLT is also a template engine<br /> 4. <a href="http://pear.php.net/HTML_Template_Flexy">PEAR::HTML_Template_Flexy</a><br /> 5. <a href="http://pear.php.net/HTML_Template_IT">PEAR::HTML_Template_IT</a><br /> 6. <a href="http://pear.php.net/HTML_Template_PHPLIB">PEAR::HTML_Template_PHPLIB</a><br /> 7. <a href="http://pear.php.net/HTML_Template_Sigma">PEAR::HTML_Template_Sigma</a><br /> 8. <a href="http://pear.php.net/HTML_Template_Xipe">PEAR::HTML_Template_Xipe</a><br /> 9. <a href="http://www.php-tools.de/site.php?file=/patTemplate/overview.xml">patTemplate</a><br /> 10. <a href="http://phptal.sourceforge.net/">PHPTAL</a> (port of Zope templates)<br /> 11. <a href="http://phpsavant.sourceforge.net/">PHP Savant</a> - reclaiming PHP<br /> 12. <a href="http://simplet.sourceforge.net">SimpleT</a> - also reclaiming PHP<br /> 13. <a href="http://yats.sourceforge.net/">YATS - Yet Another PHP Templating System</a><br /> 14. <a href="http://www.phpbb.com">phpBB template engine</a><br /> 15. <a href="http://www.thewebmasters.net/php/FastTemplate.phtml">Fast Template</a><br /> 16. <a href="http://www.tinybutstrong.com/">Tiny But Strong</a><br /> 17. <a href="http://yapter.sourceforge.net/">YAPTER</a> (yet another yet another?)<br /> 18. <a href="http://www.simpleturtle.com/template/">Simple Turtle Template</a><br /> 19. <a href="http://www.source-code.biz/MiniTemplator/">MiniTemplator</a><br /> 20. <a href="http://www.virtualcreations.com.au/mark/tagtemplate.htm">TagTemplate</a><br /> 21. <a href="http://www.ultratemplate.com/main.php">http://www.ultratemplate.com/main.php</a><br /> 22. <a href="http://templatepower.codocad.com/">Template Power</a><br /> 23. <a href="http://vtemplate.sourceforge.net/">Virtual Template</a> (French)<br /> 24. <a href="http://vlib.activefish.com/">vLibTemplate</a><br /> 25. <a href="http://sourceforge.net/projects/xtpl/">XTemplate</a><br /> 26. <a href="http://www.phpguru.org/template.html">Richard Hayes Template class</a><br /> 27. <a href="http://www.bugi.biz/">Bugi Template</a> (site is down? <a href="http://www.hotscripts.com/Detailed/14787.html">hotscripts entry</a>)<br /> 28. <a href="http://www.massassi.com/bTemplate/index.php?page=home">bTemplate</a><br /> 29. <a href="http://pukomuko.esu.lt/phemplate/">Phemplate</a><br /> 30. <a href="http://templeet.org/">Templeet</a><br /> 31. <a href="http://htmltmpl.sourceforge.net/">htmltmpl</a> 32. <a href="http://phplib.sourceforge.net/">PHPLib</a> 32. eZ Publish 2.x Templates<br /> 33. <a href="http://ez.no/sdk/tutorials/view/templateissues">eZ Publish 3.x Templates</a> - very different to 2.x</a> 34. <a href="http://templatepower.codocad.com/">TemplatePower</a><br /> 35. <a href="http://www.muze.nl/en/software/template/">Muze Template</a><br /> 36. <a href="http://ets.sourceforge.net/">ETS - Easy Template System</a><br /> 37. <a href="http://avantemplate.sourceforge.net/">AvantTemplate</a><br /> 38. <a href="http://www.servability.com/products/free/logictemplate/">Logic Template</a> - not sure about this one - seems to be about turning PHP into an intepreter<br /> 39. <a href="http://www.maiatech.com/varpage.php">varpage</a> (formerly known as ShellPage)</a> 40. PHP-DOM extension (HTML support) 41. <a href="http://demo.deluxeportal.com/">Template-X</a> 42. <a href="http://kuerbis.org/template/">KTemplate (former Apolda Template)</a><br /> 43. <a href="http://www.jvmultimedia.com/home/articles.php?articleId=8">EZ Template</a><br /> 44. <a href="http://4arrow.com/apps/template_compiler/">4Arrow Template Compiler</a><br /> 45. <a href="http://sourceforge.net/projects/phpdudlik/">DTE</a><br /> 46. <a href="http://enzyme.sourceforge.net/">Enzyme Template</a> (part of a mini framework)<br /> 47. <a href="http://dutchtpl.devfusion.nl/">dutchtpl</a><br /> 48. <a href="http://www.xaraya.com/">Xaraya</a> - implements it's own template engine<br /> 49. <a href="http://sourceforge.net/projects/bleetz">Bleetz</a> <br /> 50. <a href="http://asaplate.sourceforge.net/">ASAPlate</a><br /> 51. <a href="http://www.millipede.nl/ectemplate/">ecTemplate</a><br /> 52. <a href="http://www.freetemplate.de/">Freetemplate</a><br /> 53. <a href="http://www.phpclasses.org/browse.html/package/1132.html">FT</a><br /> 54. <a href="http://modelixe.phpedit.com/">ModelIxe</a> 55. <a href="http://www.astrofoto.org/people/roland/rFT/">FastTemplate Clone</a> - drop in replacement for FastTemplate.<br /> 56. <a href="http://sourceforge.net/projects/php-service/">PHP-Service</a><br /> 57. <a href="http://monsite.wanadoo.fr/phptempt/">PHPTempt</a><br /> 58. <a href="http://sourceforge.net/projects/qtpl/">Quick Template</a><br /> 59. <a href="http://sledgehammer.sourceforge.net/">Sledgehammer</a><br /> 60. <a href="http://simonster.com/software/sstp/">Server Side Template Parser</a><br /> 61. <a href="http://andy.greyledge.net/voot/index.php">Vanilla Object Oriented Templates</a><br /> 62. <a href="http://www.vbulletin.com">vBulletin</a> - has it's own template langauge<br /> 64. <a href="http://www.phpclasses.org/browse.html/package/98.html">ATemplate</a><br /> 65. <a href="http://www.phpclasses.org/browse.html/package/937.html">ctlTpl</a><br /> 66. <a href="http://www.phpclasses.org/browse.html/package/1095.html">hierarchy template</a><br /> 67. <a href="http://www.phpclasses.org/browse.html/package/361.html">InTemplate</a><br /> 68. <a href="http://www.phpclasses.org/browse.html/package/903.html">lorenphplib_patternizer</a><br /> 69. <a href="http://www.phpclasses.org/browse.html/package/807.html">MyTemplate</a><br /> 70. <a href="http://www.phpclasses.org/browse.html/package/1111.html">Path Wrapper</a><br /> 71. <a href="http://www.phpclasses.org/browse.html/package/905.html">phpoot</a><br /> 72. <a href="http://www.phpclasses.org/browse.html/package/1032.html">Smart Template</a><br /> 73. <a href="http://www.phpclasses.org/browse.html/package/658.html">Templato</a><br /> 74. [http://extemplates.narod.ru/]ExTemplates[/url] 75. http://www.templatetamer.com/ 76. http://sourceforge.net/project/showfiles.php?group_id=69763&release_id=172516 77. http://pinkgoblin.com/index.php?view=scripts 78. http://www.sourceforge.net/projects/phpmarker 79. http://tpln.sourceforge.net/ 80. http://www.pgenie.org/