Hi Kent, Thanks for your time, seems everyone works late (or early) around here.
> This is verging into "user support", which is typically better targeted at > the "beginners@perl.org"[1] mailing list or any of the Web::Simple support > avenues[2], not RT/P5P, however, I don't like to leave something hanging. I don't know if just Cc'ing beginners@perl.org will work? (I'm not subscribed) > On Fri Jan 22 22:58:28 2016, frede...@ofb.net wrote: > > Thanks for the reply. > > > > I hope that a compatible version of CGI continues to be available from > > the standard repositories, > > As far as I'm aware, CGI.pm will continue to be maintained and its bugs fixed > where possible, and will be available from CPAN mirrors. ( And even in the > event it vanished from CPAN, there's always BackPAN :) ) Got it, thank you. > > because after reading your explanation, and > > the synopsis of CGI::HTML::Functions, I still don't understand what > > the problem with the existing interface is, or how I'm supposed to get > > start_html using HTML::Tiny... > > There's no need to use start_html with HTML::Tiny. > > my $content = start_html( child_nodes() ); > > vs > > my $g = HTML::Tiny->new(); > my $html = $g->html( > $g->... > ); > > Are basically the difference you're looking for. > > The difference that matters is instead of *printing* it to STDOUT with > Web::Simple, you pass the HTML string inside the last array ( this is how the > PSGI protocol works ) > > return [ CODE, [ HEADING => VALUE ], [ $html ] ]; That sounds like a big difference. I find it very intuitive to write code that goes print start_table(...) for(...) { print tr(td(...)) } print end_table(...) I don't see a way to do this with HTML::Tiny. Furthermore, all the documentation for functions like start_table and start_html has been not only removed from CGI but also fails to appear in CGI::HTML::Functions. This just seems like a big regression to me, documentation-wise. > > or what is "template driven page > > generation"... and I just noticed that Web::Simple pulled in a ton of > > dependencies! Oh, the irony. :) > > Its still simple to *use*, and it is optimised for low-overhead startup time > and fat-packability irrc :) > > > Wait, templates are just what I feared. ... sigh... > > Templates aren't all that bad. Sometimes its just nicer to write pure HTML > than fuss with writing HTML with hundreds of perl function calls =) I totally agree with that statement, and I could see myself using Web::Simple/PSGI for certain projects. But I would also assert that sometimes it's nicer to write Perl function calls, without having to worry about HTML entities and matching all those start and end tags with the little angle brackets around each one... so why should that choice be deprecated, even "softly"? > But I'll leave it up to you if you want to send any follow up questions to > other channels. :) > > HTH. > > 1: http://lists.perl.org/list/beginners.html , > http://www.nntp.perl.org/group/perl.beginners/ > 2: https://metacpan.org/pod/Web::Simple#COMMUNITY-AND-SUPPORT I submitted an issue with the CGI module https://github.com/leejo/CGI.pm/issues/195 Sorry I missed that 'perlbug' is only for core modules. Take care, Frederick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/