xilla tags generates HTML tags from PHP.
I found my code tends to be more readable using this approach. It has a mildly lisp flavor, and results in nested PHP code that looks something like this -
table("",
tr("", array(
td(array("class"=>"field"), "Name"),
td("", "Jim Blinn"))));
As you can see it uses tag functions to build up a tree of PHP native arrays, which is then rendered using render_tags().
See the previous post for an overview and comparison with another tags library, HAML. The main difference is that HAML is a parsed syntax, whereas xilla tags is native PHP.
BSD licence, on google code here – http://code.google.com/p/xillatags/downloads/list

No comments yet
Comments feed for this article