Gagawa is an HTML Generator library written in Java and PHP.
It allows developers to easily and dynamically build well-formed HTML in web or non-web applications. In Java, Gagawa is especially useful when traditional HTML generation engines such as Java Server Pages (JSP"s) are unavailable. In PHP, Gagawa frees developers from hand-writing HTML in PHP web applications. Although you can build an entire site using Gagawa, most developers use Gagawa in conjunction with other libraries to build relatively small blocks or pieces of HTML. For example, Gagawa is perfect when a developer needs to return a small chunk of well-formed HTML in an AJAX response.
Under the hood, Gagawa uses Objects to represent each HTML element, or tag. For example, a
element is represented using a Div object. Similarly, developers can set attributes on these nodes using a setAttribute() method, or function, for each object.