Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Shipping images and templates in a CPAN distribution?

by tex (Acolyte)
on Aug 02, 2012 at 07:09 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found