I've been thinking about this for a while and I'd like to hear what you folks think.
Most web pages can be classified or organized into broad categories, according to the kind of things on the page. For example, most bio pages have a picture of the individual and a lot of text, but not much else. Most product pages in a shopping cart have one or more pictures of the product, a short and a long description of the product, and (depending on the structure of the site) a link to add it to your cart. It seems like there would be an advantage to codifying these patterns somehow, possibly into a class-like structure, where each document class inherits features from a superclass (the most generic of which is simply a blank HTML document). No information about layout, HTML, etc. would be present in the class structure - all you'd have is the class name and a list of "slots" that control what kind of information can go into them. To turn this into an actual web page, you would need some kind of translator or compiler that would accept as input the document class (with data to fill each of the slots) and an HTML + CSS template. Combine the two and you've got your web page. What are your thoughts about this? If you think it's a good idea, how would you implement it? -Dan _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
