in reply to Re: Adding "podpath" to Pod::XHTML?
in thread Adding "podpath" to Pod::XHTML?

That probably helps; I need to learn more and understand it :) I am trying to statically build openssl .pod manpages into our website, see https://www.openssl.org/docs/manpages.html I made the current script available at https://www.openssl.org/mk-manpages.pl It's pretty naive perl :) Especially once you look at a typical manpage. Feel free to write to me rsalz at the openssl website if that's easier (I promise to update this with any answers I get). Let me know if I didn't make myself clear enough!

Replies are listed 'Best First'.
Re^3: Adding "podpath" to Pod::XHTML?
by Anonymous Monk on Aug 20, 2015 at 04:34 UTC

    ah, ok, so do you want more general comments on that script? Are you satisfied with your pod-xhtml code ?

    The main thing I would do make more subs , maybe with more descriptive names

    Path::Tiny makes using File::Basename/File::Spec... more convenient, it even does "or die" for you most of the time

    Also included is subclassing Pod::Simple::XHTML if thats a direction you need

    So ask more questions please

      I am okay with the script, but appreciate the more perl-ish way of doing things and will take on your suggestions (except the flush-left comments, yuk :) The subclassing is the most important part; it needs to look at some parent/global context to get the path, which I can do by adding a sub to MyPSX to set the path; e.g., sometimes I want crypto:ssl:app, sometimes I want app:crypto:ssl, etc. Thank you VERY much. I will post back in a day or two.
      Thanks to any/all posters here. The manpages on openssl now work! Thanks in particular to Phil Pearl for reaching out and turning the POC into production code :) If I can ever return the favor with openssl code, ping me.

        Thanks to any/all posters here. The manpages on openssl now work! Thanks in particular to Phil Pearl for reaching out and turning the POC into production code :) If I can ever return the favor with openssl code, ping me.

        Neat

        The "production" version it might be interesting to read :)