W3C home > Mailing lists > Public > www-talk@w3.org > November to December 2005

Divorcing Presentation from Content - a prototype.

From: Sunil <sunilgupta@btopenworld.com>
Date: Sat, 26 Nov 2005 01:07:58 -0000
To: <www-talk@w3.org>
Message-ID: <000101c5f225$d79560d0$0200a8c0@xppropc11>

Hi, I've knocked together some javascript code that pushes the
responsibility for merging the content with
the presentation of a web page to the browser. Its only a prototype at the
moment and runs on firefox, but
as a proof of concept it shows how it could be done.

the project page is
	http://sdpml.mozdev.org/

and a working prototype can be found at
	http://www.paglis.co.uk/sdpml/index.html

The prototype shows that its possible to reduce the amount of information
that the web server application
needs to send back to the client to be just the dynamic data content. The
client then separately pulls
the back static layout templat of the page, additional static data and
merges all three back together into a
fully rendered HTML page.

This means that the amount of information that the web server application
has to send back to
the client is much much smaller as it no longer has to send any layout
information. The presentation layer
can be changed independentally from the application by changing the
templates. the browser is able to cache both the
layout templates and the static content - making fewer overall requests from
the web site over multiple sessions.

The other significant thing to note is that the templates are HTML, and can
be produced using industry standard
HTML authoring tools. No knowledge of XSLT is needed.

As indicated it is a working prototype in its early days and currently only
fully works in Firefox.
I welcome comments and improvements on the work so far. I've got a long
wishlist at the moment:

	* make it work in Internet Explorer
	* add server side support to render server side for unsupported browsers
	* allow the browser to choose which template to use
	* allow the browser to pull in a different content file for different
locales
	* clean up the rendered HTML produced by the prototype
	* find out if anyone else at the w3c is working on this type of concept.

Thanks
s u n i l

SDPML is an open source project, licensed under the terms of the OSI
certified Open Source Artistic License
based on code Copyright 2005 Paglis Software.
Received on Sunday, 27 November 2005 01:43:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:28 GMT