Re: [Templates] javascript implementation of tt?

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

From: Tony Bowden
Subject: Re: [Templates] javascript implementation of tt?
Date: 14:46 on 31 Mar 2005
On Thu, Mar 31, 2005 at 03:13:01PM +0100, Dan Thomas wrote:
> > The obvious usage of it would be in an Ajax style application
> Why in the world you'd want to use a text-based pattern matching
> template system with that when you have all the power of the Document
> Object Model at your disposal I do not know. It would make most sense
> to me to create your own DTD and use an XML based system, 

As I said, this is all easier to do with XML, but the OP said:

: (and i don't want to hear anything about xsl - xsl is a decent
: templating language for xml, NOT html and it doesn't work - i want a
: friendly syntax like this.)

I'm just exploring the idea of doing this all a completely different
way. 

> Maybe, but since the client can parse html and xml very quickly and
> efficiently, but has little to offer to assist you in parsing the text
> yourself, it would seem to me to be a waste of a perfectly good
> opportunity just because somebody "doesn't like XML"

I'm not saying it's a /good/ idea, I'm just attacking the notion that
it's a completely nonsensical idea.

> And I still think client side templating is a daft idea.. Server-side
> templating systems such as TT2 have grown with the assumption that
> including another file is a relatively cheap and reliable process, and
> using seperate template files is basically how they provide
> modularity.. but the situation is very different client side, fetching
> a new template is a slow complicated procedure that may or may not
> work,

Google seem to have got it working pretty well.

> and you don't have the luxury of being able to call on a
> CPAN-like library of code to do stuff like parse text reliably...

Lots of languages don't have a CPAN-like library of code. People still
use them quite effectively.

> PS. I absolutely detest the phrase "AJAX". It's horrible! I understand
> people's need to wrap up a collection of technologies in a nicely
> named package so they can talk to their boss about it without their
> eyes glazing over, but come on, that one was taken years ago by the
> brand of soap that my first school used to use to clean the toilets.

If the computer industry couldn't use names that have been previously
used, we wouldn't have Windows, or Oracle, or Java, or ... hmmm. This is
sounding better by the minute ...

Tony


_______________________________________________
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?
Tony Bowden 14:46 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