Hi Daniel-- Correct me if I'm wrong, but isn't there a common design pattern (MVC) to handle Code and Design? What you're talking about is intermingling them, even if at the file layer there is no mixing, you're severely limiting templating abilities by trying to impose coding on top of a designer.
You're also severely limiting the ability to easily change templates. MVC and templates vs code is to help designers not break it - doing it this way may not be beneficial. Maybe I didn't get your entire meaning - elaborate? It also seems like a lot of work for very little benefit. -Will On Sat, Sep 19, 2009 at 6:19 PM, Daniel C. <[email protected]> wrote: > 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 > -- Take care, William Attwood Idea Extraordinaire [email protected] Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html> - "The trouble with a kitten is that when it grows up, it's always a cat." _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
