One can use the 'install_share' directive provided by Module::Install .

In your Makefile.PL:

  install_share 'templates';

In your module:

  use File::ShareDir ();
  my $include_path_entry = 
  File::ShareDir::dist_dir( $your_dist_name );  # or 
File::ShareDir::module_dir( $your_module_name )

Have a look at the docs of File::ShareDir() in order to get more 
information especially on the retrieval of the shared directory.

Alex

Bill Moseley schrieb:
> I have a module that includes templates.   When the module is tested 
> or installed the module needs to have the template's location in 
> INCLUDE_PATH.
>
> What's the best way to specify the templates in Makefile.PL so they 
> end up someplace sane and to determined at run time (and for make 
> test) where they are located so I can set INCLUDE_PATH correctly?
>
> Thanks,
>
>
> -- 
> Bill Moseley
> [email protected] <mailto:[email protected]>
> ------------------------------------------------------------------------
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>   

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to