Re: [Templates] javascript implementation of tt?

[prev] [thread] [next] [Date index for 2005/03/31]

From: qbxk
Subject: Re: [Templates] javascript implementation of tt?
Date: 14:51 on 31 Mar 2005
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
> templates@xxxxxxxxxxxxxxxx.xxx
> http://lists.template-toolkit.org/mailman/listinfo/templates
>
>
>
>  
>

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

RE: [Templates] javascript implementation of tt?
Jose Luis Martinez 08:55 on 31 Mar 2005

Re: [Templates] javascript implementation of tt?
qbxk 14:51 on 31 Mar 2005

Re: [Templates] javascript implementation of tt?
Buddy Burden 15:50 on 08 Apr 2005

Re: [Templates] javascript implementation of tt?
Sebastian Riedel 16:04 on 08 Apr 2005

Generated at 14:44 on 11 Apr 2005 by mariachi v0.52