Subject: | Making Pod::Weaver simpler to use with MooseX::Declare? |
Date: | Sat, 25 Jun 2011 22:55:40 +0200 |
To: | Ricardo SIGNES <rjbs [...] cpan.org> |
From: | Vadim Zeitlin <vadim [...] zeitlins.org> |
Hello,
First of all, sorry in advance if writing to you directly is not the
preferred way of discussing this topic, please point me to a better place
to do it if so.
Now on to my hopefully simple question: I've recently finally tried to
upgrade some of my Perl code to the latest and greatest Perl practices and
so tried using Dist::Zilla -- with its Pod::Weaver plugin -- and Moose,
including MooseX::Declare. It's a tad annoying however that Pod::Weaver can
determine the file name automatically if it contains the traditional
"package Foo::Bar" declaration but not if MooseX::Declare "class Foo::Bar"
is used.
I know that I can use "# PODNAME" to avoid this problem but I was just
wondering if Pod::Weaver could to also look for "class" lines, maybe with
some extra configuration? I don't really know how difficult would be this
to do as I've never used PPI before but for non pathological examples it
could even be done at purely textual level.
Anyhow, it's not a big deal either way but I just wanted to ask what (if
anything ;-) did you think about this possible enhancement.
Thanks,
VZ
Message body not shown because it is not plain text.