[whatwg] template element?

Wrigley, Ave Ave.Wrigley at itn.co.uk
Thu Jul 29 02:41:50 PDT 2004

Fair point, but there are already a number of other languages that
already appear in HTML pages (scripting, CSS). Admittedly this is
generally fudged to make them valid HTML by putting them in comments and
such, and perhaps the point of WhatWG to to get away from this kind of
kludge. However, is there any reason in principle that you couldn't use
a separate template syntax (so long as it can be dealt elegantly by
non-compliant browsers)? Basically, the advantages (IMHO) of doing this

1. from a transparency point of view, it is a "good thing" for the
template directive to be distinct from the HTML
2. in principle, templating directives are doing a different thing to
HTML elements (like stylesheets are)
3. you could get yourself into a mess (as your orinigal posting pointed
out) trying to shoehorn anything other than very basic templating
primitives (loops / conditionals / variables) into HTML syntax


> Wrigley, Ave wrote:
> > I agree - I have had the same reservations. How constrained 
> do people 
> > feel about fitting the templating model into HTML syntax? Clearly, 
> > there are a number of well developed server side templating 
> > minilanguages that
> > (deliberately) use a syntax that is orthogonal to the HMTL markup.
> > Without opening too much of a can of worms ... are there 
> any lessons to
> > be learned / wheels left un-re-invented?
> > 
> > ps. my person preference at the moment is the perl Template 
> Toolkit, 
> > but lets not make this a religious thing ;-)
> Well, the point of putting it into HTML syntax is so that the 
> repetition can be executed client-side without depending on 
> scripting support.
This email (and any attachments) is intended solely for the individual(s) to whom addressed. It may contain confidential and/or legally privileged information. Any statement or opinions therein are not necessarily those of ITN unless specifically stated. Any unauthorised use, disclosure or copying is prohibited. If you have received this email in error, please notify the sender and delete it from your system. Security and reliability of the e-mail and attachments are not guaranteed. You must take full responsibility for virus checking.

Independent Television News Limited, 

Registered No. 548648 England,

VAT Reg. No: GB 756 2995 81, 

200 Gray's Inn Road, London WC1X 8XZ,

Telephone: 020 7833 3000.

More information about the whatwg mailing list