Nest is a nestable server templating library. It lets you create pages that look like standard HTML and easily add functionality with custom tag libraries. Nest templates are well-formed HTML that is then compiled into standard PHP.
Tag Builder can be used to generate HTML tags programmatically. It can compose the definition of an HTML tag, its attributes, CSS styles, and tag content. Once defined, the class can return the HTML for the specified tag.