Seperating Content from code, and making it transparent



After talking on irc (thats irc.gnome.org #webgeeks) i tried to come up with a system to transparently handle the cacheing and generating of pages.

Background

The main directory contains only the xml files
so you have index.xml

we are using xslt to generate the files

we are using dynamic caching based on changes to the xml files

php is setup to parse all the xml files

people developing content should never have to see php code or do anything special to create a new page


The only way i can see of handling this is by using php auto prepend and append features, and output buffering.

An example auto prepend file is http://gnome.joshuaeichorn.com/prepend.phps
An example auto append file is http://gnome.joshuaeichorn.com/append.phps

Does anyone here think this is an acceptable solution or did i miss some really easy way to do this.
-josh





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]