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

New feature. Content templates

From: Alexander Shpack <shadowkin@gmail.com>
Date: Thu, 15 Mar 2012 10:41:30 +0200
Message-ID: <CAK4xKX=NJ83XOK7vEhquUdfY8=xUJC-kntD7ihigzUMLJ7ZLKg@mail.gmail.com>
To: www-style <www-style@w3.org>
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!
Received on Thursday, 15 March 2012 08:42:03 GMT

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