Precisely Tony - and you also get the ease of a model where the cgi scripts only do data gathering with the end goal of producing a hashtable consumed by the client. it perfectly separates the responsibilities between client & server where you would want them - server does heavy lifting, client formats it on their own time... plus with AJAX style all things can happen asynchronously - a page reload and the inevitable "blink" and redraw is really painful for users, but when just the section they're working with changes they're willing to wait.

i could write xsl templates and send xml from the server, it looks like it's fairly easy to do that, but as i said, i've written a lot of html using xsl and it's not fun. i'd rather write tt code and have the server emit js hashes that get eval'ed and then template processed

Tony Bowden wrote:

On Thu, Mar 31, 2005 at 01:13:59PM +0100, Dan Thomas wrote:


Client side templating isn't a very good idea anyway, what are you
expecting to happen? grab each template via an http request? sounds
like a very inefficient way to make dynamic webpages to me.


The obvious usage of it would be in an Ajax style application, where the
template is served up, and then the application would request new data
parcels from the server and then re-process the template with the new
data to update the display.

This is easier to do with XML, but having a TT-style approach may be
an alternate approach for people who don't like XML.

Tony

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates






_______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to