Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Shipping images and templates in a CPAN distribution?

by tex (Acolyte)
on Aug 02, 2012 at 07:09 UTC ( #984957=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://984957]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2021-12-09 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?