ionik Posted April 29, 2008 Share Posted April 29, 2008 Ok, Well I have finally finished the backend for something I have been developing 2 months work and after hundreds of cups of coffee, couplea cartons of cigarettes, and 10's of thousands of lines of code, I come to the building the frontend....and I'm trying to come to a solution on the template engine. Now, what would be a good recommendation for a template engine. Some input on this would be appreciated. Right now I'm deciding on going XML files or Tpl files. Now there are advantages and disadvantages to both, XML I could have a template editor built into the Administration with less effort, Tpl files are easier for less experienced designers / developers or whoever to understand. What I would like to know is what do some of you prefer XML or TPL? I have allready built a TPL and XML template class handler and both perform at a suitable rate for me. Which do you think is more efficient? Or possiable another efficient stable and secure way of parsing templates. Quote Link to comment https://forums.phpfreaks.com/topic/103499-template-engine/ Share on other sites More sharing options...
redbullmarky Posted April 30, 2008 Share Posted April 30, 2008 i tend to avoid XML all together, generally out of personal preference and to keep things simple. I also have some doubts about performance when compared to using simple templates. take a look at a similar topic posted not so long back, especially at the link in Reply #4: http://www.phpfreaks.com/forums/index.php/topic,190065.0.html Quote Link to comment https://forums.phpfreaks.com/topic/103499-template-engine/#findComment-530137 Share on other sites More sharing options...
roopurt18 Posted May 1, 2008 Share Posted May 1, 2008 Allow the user to choose their template style. If you already have a class for each, then when the user is entering their template have them select which of the two the template should be retarded as. Done and done. Quote Link to comment https://forums.phpfreaks.com/topic/103499-template-engine/#findComment-530864 Share on other sites More sharing options...
ionik Posted May 1, 2008 Author Share Posted May 1, 2008 that could be a solution but then it would take alot more effort to do that as XML handle class and TPL are completely different....I've decided to just run .PHP files as the standard template less overhaul I need to worry about and doesn't limit the flexibility of templates and i can still perform all the caching I need. I read up on this for 2 days now and it doesnt make since trying to make it easier on other developers or users wanting to make templates, PHP is not complex if users dont want to make their own templates using PHP they can come back and pay me to do it simple. Thnx for the replies! Quote Link to comment https://forums.phpfreaks.com/topic/103499-template-engine/#findComment-530965 Share on other sites More sharing options...
roopurt18 Posted May 2, 2008 Share Posted May 2, 2008 should be retarded as. Oops. That should have said regarded. Quote Link to comment https://forums.phpfreaks.com/topic/103499-template-engine/#findComment-531394 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.