kentnl / Dist-Zilla-Plugin-Test-Compile-PerFile

Create a single .t for each compilable file in a distribution
Other
0 stars 0 forks source link

template file not picked up from zilla->root->share directory #1

Open cazador481 opened 8 years ago

cazador481 commented 8 years ago

I have set test_template=test.tpl And put the file in root/share (where root is my module dev path) but dzil can't find the test.tpl file. Where do I put my template file in my module work area?

kentfredric commented 8 years ago

Where do I put my template file in my module work area?

Said feature didn't really intend for the template to be in the dist itself.

It was more a future proofing so I could create slightly different variants of doing this and just toggle which one is used via a config var.

The files in question are expected to be picked up from the C "Share" dir in @INC.

So the dir in question is "Wherever dist_dir('Dist-Zilla-Plugin-Test-Compile-PerFile');" resolves to.

If you have suggestions for alternative implementations that can be stuck in this dir in a future release, I'm all ears.

( And I could consider adding support for sourcing a local file for the template, just that introduces the question of whether I should pick said file from $zilla's files table ( potentially creating a cycle ), or only support direct reads from the source dir )