W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] template element?

From: Wrigley, Ave <Ave.Wrigley@itn.co.uk>
Date: Thu, 29 Jul 2004 10:02:15 +0100
Message-ID: <5984AE6FCA91944C8E4FAABA4F2822BA019B3F15@mx2.ITN.LOCAL>
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?

Ave.

ps. my person preference at the moment is the perl Template Toolkit, but
lets not make this a religious thing ;-)

Ave Wrigley
Head of New Media Technology, ITN
200 Grays Inn Rd, Tel: +44-20-7430-4719
London WC1X 8XZ,  Mob: +44-7713-986247
United Kingdom    Fax: +44-20-7430-4020
mailto:ave.wrigley at itn.co.uk
mailto:ave.wrigley at ave.wrigley.name

> -----Original Message-----
> From: whatwg-whatwg.org-bounces at lists.whatwg.org 
> [mailto:whatwg-whatwg.org-bounces at lists.whatwg.org] On Behalf 
> Of fantasai
> Sent: 28 July 2004 21:59
> To: WHAT WG List
> Subject: [whatwg] template element?
> 
> 
> The current repetition model adds four global attributes to 
> every element:
>    repeat
>    repeat-start
>    repeat-min
>    repeat-max
> 
> If the repetition model continues to develop over the next 
> few years, that list will increase (e.g. by adding a way to 
> group several templates to use the same template index), and 
> it's already unweildy. Imagine repeating a form control. You 
> might have to put attributes for name, type, value, required, 
> pattern, min, max, step, id, inputmode, onchange... as well 
> as repeat, repeat-start, repeat-min, repeat-max, and any 
> others. Would it perhaps make more sense to create a 
> <template> element?
> 
> <template repeat-min="1" repeat-max="20" repeat-start="5">
>    <element/>
> </template>
> 
> would be equivalent to
> 
> <element repeat="template" repeat-min="1" repeat-max="20" 
> repeat-start="5"/>
> 
> and the repeat attribute will continue to be global. (It will 
> no longer be overloaded with the "template" value.)
> 
> ~fantasai
> 
> -- 
> http://fantasai.inkedblade.net/contact
> 
> 
> 
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.
Received on Thursday, 29 July 2004 02:02:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC