The Joomla! Forum ™





Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: bye bye patTemplate
PostPosted: Wed Oct 04, 2006 9:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 01, 2006 8:04 am
Posts: 44
Location: Berlin
The question is, how the template is transcripted. ;)

Often they just use pattern search. Modern template engines use a precompile to php code (smarty) and cache the precompiled template. So the parser just checks if there is a precompiled template and then include this one. In the precompiled template itself the template variables are replaced by php variables so there is no need for pattern search, just echoing the variable.

This seems to be the most performant use of a template engine. If TBS uses this approach it should be as performant as every other template engine with the same approach.


Top
 Profile  
 
 Post subject: Re: bye bye patTemplate
PostPosted: Wed Oct 04, 2006 9:18 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Thu Aug 18, 2005 12:37 am
Posts: 1199
Location: Melbourne, Australia
kmekc wrote:
The question is, how the template is transcripted. ;)

Often they just use pattern search. Modern template engines use a precompile to php code (smarty) and cache the precompiled template. So the parser just checks if there is a precompiled template and then include this one. In the precompiled template itself the template variables are replaced by php variables so there is no need for pattern search, just echoing the variable.

This seems to be the most performant use of a template engine. If TBS uses this approach it should be as performant as every other template engine with the same approach.


TBS already has caching plugins so theoretically it could end up utilising the J! cache system or working alongside it. Precompilation is something that is current or close to release, from what I've been reading.

Edit: I've found how ModX interacts with TBS - TBS is an addon in replacement of the Smarty engine deployed with ModX.
http://modxcms.com/forums/index.php/topic,5110.0.html

The problem in J!'s case is that there is no means to replace (or add) a second template engine.

Edit 2: And from what I hear, the Core team can't or won't integrate a second engine anyway..

_________________
Design with integrity : Web accessible solutions
http://www.absalom.biz
http://twitter.com/absalomedia


Last edited by absalom on Sat Oct 07, 2006 3:46 am, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group