You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Igor Chudov <ic...@gmail.com> on 2018/03/31 20:44:44 UTC

Anyone using HTML::HTML5::Builder ?

I have some websites such as algebra.com. I used CGI.pm extensively,
including for HTML generation.

I am looking for other modules to generate HTML from perl code and I
stumbled upon HTML::HTML5::Builder
<http://search.cpan.org/~tobyink/HTML-HTML5-Builder-0.004/lib/HTML/HTML5/Builder.pm>
 .

It certainly looks promising, however I wanted to ask if anyone used it and
is it mature or buggy.

The code certainly looks promising:

 my $b = HTML::HTML5::Builder->new;
  my $document = $b->html(
    -lang => 'en',
    $b->head(
      $b->title('Test', \(my $foo)),
      $b->meta(-charset => 'utf-8'),
    ),
    $b->body(
      $b->h1('Test'),
      $b->p('This is a test.')
    ),
  );