XDO
static web site tool

XDO ("extensible document objects") is a tool for creating simple static web sites. The idea of XDO is is that you can include web pages in other web pages so that you can have common headers, footers, and other common sections of a page.

Let's look at a simple example. Suppose you have a web page with this HTML:

<html>
<head>
<title>Fred's page</title>
</head>
<body>
<h1>Fred's page</h1>
</body>
</html>
... and another page like this:
<html>
<head>
<title>Joe's page</title>
</head>
<body>
<h1>Joe's page</h1>
</body>
</html>
Those pages have a lot in common. In fact, the only things that are different are the names of the owners of the page. It would be simpler for each page to have just the HTML that is unique to that page, and get the rest of the HTML from a single page.

That's what XDO allows you to do. So, in our example above, we can have a single page with all the common elements:

<html>
<head>
<title><show-property name="owner">'s page</title>
</head>
<body>
<h1><show-property name="owner">'s page</h1>
</body>
</html>
.. then, we can just put the name ofthe page's owner in a property and include the common page:
<property name="owner" value="Fred">
<include src="./common.xdo">
In a nutshell, that's what XDO does: it simplifies building your web pages.

Note: XDO is currently in version 0.10. Until we get to version 1.0 we might make backward-incompatible changes. After 1.0 we'll maintain backward compatibilty.

Keep in mind that XDO is a tool for building static web pages, that is, pages where the content doesn't change much. XDO is good for things like tutorials and other forms of documentation. If you're looking to create dynamic web pages I'd like to suggest Mason.

Let's start by looking at how to install XDO.

XDO © 2013 Miko O'Sullivan. • available under GPLXDO source for this page