Ripping out the display code and converting it into a more consolidated set of templates, or as an intermediate step, into a data structure that is then served to React or any HTML templating system makes a lot of sense IMO! But I've been dreading the large refactor that is necessary, going through all the call-trees etc.

Moving the site away from mod_perl onto Plack also makes a lot of sense. I have a local Mojolicious server that serves a development copy of the Perlmonks site already, but it mostly wraps the single entry into Everything.

I'm not a big fan of React or the other JS-display frameworks, especially for what can be primarily a static site. Moving the chatterbox into a separate component that refreshes (say) via Javascript might make sense, but I think doing this using HTTP endpoints like with https://htmx.org makes more sense. Also, being able to serve the site as static HTML is one of our approaches to stem the constant barrage of bad AI scrapers.

I have a scrubbed copy of Perlmonks (without the votes, email addresses, personal messages etc.) as a MySQL dump if you're interested, and a tools to create that dump at https://github.com/Corion/Perlmonks-Dump, and https://github.com/Corion/Perlmonks-SQLite.


In reply to Re: Taking advantage of E2 improvements by Corion
in thread Taking advantage of E2 improvements by JayBonci

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.