in reply to Re: problems installing HTML::Tree
in thread problems installing HTML::Tree

ou might want to look at Marpa-HTML
the docs for Marpa::HTML look very similar to Marpa::UrHTML. How do those 2 packages differ?

also, it looks like Marpa::HTML is focused on parsing and a bit of tree transformation. an example of complex HTML rendering (such as a zebra table with 3 different "stripes") would be interesting.

Also, how do you output the final document as HTML when done? Is there a method similar to ->as_HTML in TreeBuilder?



The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development.

-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"

Replies are listed 'Best First'.
Re^3: problems installing HTML::Tree
by Jeffrey Kegler (Hermit) on May 16, 2010 at 04:08 UTC

    Marpa-HTML is derived from, and replaces Marpa::UrHTML.

    For an example of how to output the HTML, look at the html_fmt utility which is part of the Marpa-HTML distribution. Warning: html_fmt is primarily intended to pretty-print HTML for reading. This keeps it pretty simple. I find most of the time the HTML output also renders the same as the input, but you can't rely on that.

    I'll look into providing an equivalent to as_HTML(). Transforming a table with zebra striping might be a good example for me to add. I'll also look into that.