I really like this idea, not for full layout html, or even views, but
for generating things like form elements and other more "functional"
elements (rather than structural). I've considered writing something
similar myself, but never got round to it, this could make that
unnecessary, so thanks! If you've not see it already, there's also a ZF
proposal for a component to do a similar task:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Html+Proposal
Max_B wrote:
I've just released the first public version of a library I wrote, called
http://ac-mb.info/a_x/hop.html HoinP .
I hope some of you will like it.
>From the doc page :
http://ac-mb.info/a_x/hop.html HoinP means HTML objects in PHP. The easy
spelling is HoP.
It's free software under LGPL
The purpose of this library is to offer a structured way to generate XHTML
markup from PHP, without the traditional interleaving of PHP chunks, HTML
chunks and echo statements all over.
It is an intermediate concept between templating systems (I don't like the
paradigm) and PHP DOM extensions (over complicated for the purpose). It will
fit well in MVC designed applications and is close to the definition of
helpers in the Zend Framework. In fact, the first draft of this library is
older than the ZF 1.0 release, while it shares some conceptual similarities
with these helpers.
--
Jack