tex has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I'm packaging up a distribution which should eventually be uploaded to CPAN. I have some dists on CPAN but this one is different.

This one must include templates (Template::Toolkit) and images since it generates a web page.

At the moment I use a crude custom Makefile which isn't even using MakeMaker or smth. like that.

How are you supposed to package your "static" files when creating a CPAN distribution?

Bonus points for suggestions how to do it with Dist::Zilla.
  • Comment on Shipping images and templates in a CPAN distribution?

Replies are listed 'Best First'.
Re: Shipping images and templates in a CPAN distribution?
by Anonymous Monk on Aug 02, 2012 at 08:01 UTC

    How are you supposed to package your "static" files when creating a CPAN distribution?

    use File::ShareDir and File::ShareDir::Install for templates

    Bonus points for suggestions how to do it with Dist::Zilla.

    the same, look for sharedir