[whatwg] Client-side includes proposal

Tab Atkins Jr. jackalmage at gmail.com
Mon Aug 18 16:04:48 PDT 2008


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-0001.htm>


More information about the whatwg mailing list