Template playing with php5's Dom
posted: January 15th, 2005 · by: Sven
Standards, standards, standards … just had a look into Jeffrey Zeldman’s “Designing With Web Standards” (again). He’s nearly religious, but absolutely convincing and insightful about why we all should use web standards. You have to read it.
Ever thought about the role that standards play in the php world? To me it seems obvious that the php world definitely lacks a templating standard.
There are countless php template engines out there, each one introducing some own nifty template language, template tag syntax or something equivalent. What would php’s template world look like, if all this programmer’s manpower was concentrated by the presence of a standard (or at least: some strong recommendations)?
But wait. php5 comes along with a fine, build-in XML DOM extension. Isn’t that a standard? Indeed, it is.
Let’s have a look at how we could get started with a templating system bootstrap using that stuff.
Read the rest of this entry