[whatwg] template element?
Ave.Wrigley at itn.co.uk
Thu Jul 29 02:02:15 PDT 2004
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 ;-)
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:
> 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">
> would be equivalent to
> <element repeat="template" repeat-min="1" repeat-max="20"
> and the repeat attribute will continue to be global. (It will
> no longer be overloaded with the "template" value.)
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