RE: Template System

cannuck1964 <[email protected]> 1 Aug 2003 12:36:58 -0000
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <4bbc90d9b876eb8caf3b183782e3e50f@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=205591#205591
----------------------------------------------------------------

[quote]A templating system is somthing that separates code from content. A successful one is one that can be used and understood by a graphics developer, not a programmer. 

What you have is just a fancy include tree for php code. THIS IS NOT A TEMPLATE SYSTEM! [/quote]

Just to clarify something here as well.  A TEMPLATE SYSTEM is a system where the user can add in a layout using one file (or a couple) to control the layout. Layouts can be changed with ease, and no additional coding is needed other then to install the layout. [b]PERIOD.[/b]  

A template system does not have to be parsed first as in smarty.  All it needs to do is use one file to control the layout.  This is the basics of a template system.  Smarty was developed for cross software implementation, ie to be able to use an engine to do the work for multiple different software packages.  

A fancy include tree, yes, but then it does what is needed, and not alot of work to get it there....smarty will be a lot of work to implement and debug.


cheers