W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] Client-side includes proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 18 Aug 2008 18:04:48 -0500
Message-ID: <dd0fbad0808181604y61c1ddd6h5d69ab8f99cad5cf@mail.gmail.com>
On Mon, Aug 18, 2008 at 4:36 PM, Greg Houston <gregory.houston at gmail.com>wrote:

> This seems to be mostly useful for people creating small websites that
> are afraid of server side scripting languages like PHP, Python and
> Ruby.


I'm really going to have to point at this.  If your server provider doesn't
include PHP or something similar, there's something wrong.  There are *tons*
of dirt-cheap providers that do.  Using, say, PHP doesn't even require
anyone to *learn* anything.  The example from the original email would
simply be:

--- Master Document ---
<html>
  <head>
     <title>Include Example</title>
     <?php include "global_head.ihtml"; ?>
  </head>
  <body>
        <?php include "header.ihtml"; ?>
        <?php include "http://www.pagelets.com/foo.ihtml"; ?>
        <?php include "footer.ihtml"; ?>
  </body>
</html>

--- Header.html ---
<div id="header">
  <h1>Header</h1>
</div>


You can even do html fragments or attributes.  There's literally nothing to
learn over the current proposal, but this works right now in virtually every
host and doesn't depend on the user's browser.

~TJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080818/249a515c/attachment.htm>
Received on Monday, 18 August 2008 16:04:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC