in reply to Re^2: .dancer -- what's it for
in thread .dancer -- what's it for

The only thing I can speculate is that it's a marker for the base directory -- but that would be odd since there's a method for that. On the other hand, I do usually always have such a dot-file marking the root of my app installation on the FS, so that scripts know where to look for library paths, and so on. Most of my scripts start with something like:

BEGIN { use Path::Tiny; my $base = path(__FILE__)->parent; $base = $base->parent until -f "$base/.some-dot-file" or $base->is +_rootdir; unshift @INC, "$base/lib"; }
... so that they don't have to know where they live. Possibly .dancer has or once had a purpose like that?


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: .dancer -- what's it for
by kcott (Archbishop) on Jan 25, 2021 at 00:23 UTC

    That's interesting speculation; however, all the code that I've seen, in various parts of the documentation, has:

    use FindBin; use lib "$FindBin::Bin/../lib";

    Yes, it could be legacy code: https://github.com/PerlDancer/Dancer2/tree/master/share/skel indicates .dancer was added five years ago.

    If I come across any other information, I'll post it. Thanks for your attempts to help with this.

    — Ken