An entire complex web site or application can be written with a bunch
of 'insert's. The design of class.layout comes from the fact that
most of the HTML tags are in pairs and like a container with lots
of attributes. Look here:
<A HREF="/index.html">Homepage</A>
<A> and </A> is a pair and 'HREF="/index.html"' are the attributes
of the tag <A>. A simple Anchor object would be:
<?php
class Anchor {
var $source = "";
var $attributes = array();