in reply to Tutorial on making a proper module?
choroba has (or been party to helping) put this together. Check it out and see if it works for you.
As far as the templates, yes, put them in a templates directory. If you need them installed as part of your *distribution* (that's what we call a CPAN package), personally, I'd use the Makefile (or Build file) to drop them into the appropriate location.
Head on over to MetaCPAN and take a look at the structure of some of the distributions. You'll see structure, test layout etc. Reviewing ones that the Testers link states is passing most (if not all) the tests is a good way to understand a properly structured and designed dist. I'd recommend to look at one of mine, but that'd be biased. Data::Compare is one that may help, that has a decent structure for a newb to CPAN to look at. It does not have extra directories (such as templates), but I think it'll help you get you on your way.
I'll let the other CPAN Monks speak up now.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tutorial on making a proper module?
by Cody Fendant (Hermit) on Jan 14, 2016 at 03:50 UTC | |
by Anonymous Monk on Jan 14, 2016 at 04:39 UTC | |
by choroba (Cardinal) on Jan 14, 2016 at 09:56 UTC | |
by Anonymous Monk on Jan 14, 2016 at 10:16 UTC | |
by Cody Fendant (Hermit) on Jan 14, 2016 at 06:13 UTC |