Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • At work we use Trac for our projects and at some point this week I decided that it would be nice to be able to write Trac pages using POD instead of the Trac Wiki markup (mostly MoinMoin).

    It took me some time to get familiar with Trac internals and relearning how to do the most simple things in Python (as I have not used that language for a very long time), but in the end I was able to write a plugin to support POD.

    Behind the scenes, it just fed the POD text to pod2wiki and retrofitted the output into the Trac wiki engine. Unfortunately, the result was not too good, some things (i.e. lists) did not render as expected and the document structure went broken.

    As I couldn't commit a lot of time to this task at the moment, I went for a different approach, calling pod2html and inserting the generated HTML into the Trac envelop. This respects the document structure but is uglier as the generated HTML doesn't follow Trac style.

    I hope I would be able to put some more time in the pod2wiki approach at some point in the near future... until then, the plugin version using pod2html is here [trac-hacks.org].

    • If you'd like I can have a look at creating a pod2trac filter based on Pod::Simple::Wiki.

      John.
      --