W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: New feature. Content templates

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Thu, 15 Mar 2012 09:46:03 +0000
Message-ID: <CAEhSh3frkvz7OMemmEcXKoVmmcokz+xzwFq2ccbPZeW=NOL2bg@mail.gmail.com>
To: Alexander Shpack <shadowkin@gmail.com>
Cc: www-style <www-style@w3.org>
On Thu, Mar 15, 2012 at 8:41 AM, Alexander Shpack <shadowkin@gmail.com> wrote:
> Main goal: more flexible content constructor, based on HTML templates
>
> Usage:
>
> content: pattern(#id);
>
> where id = unique identifier
>
>
> Example
>
> Code:
>
> <div><span id="contentPattern">This is </span>madness!</div>
> <div id="content">SPARTA!</div>
>
> #content {
>  content: pattern(contentPattern);
> }
>
> Result:
>
> This is madness!
> This is SPARTA!

Hmm. Can you give an example of where you'd use this in a real design?

--
Benjamin Hawkes-Lewis
Received on Thursday, 15 March 2012 09:46:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:52 GMT