Closed damog closed 14 years ago
Totally agree
Module::Refresh could be a good idea http://search.cpan.org/~jesse/Module-Refresh-0.13/lib/Module/Refresh.pm
I was also considering implementing a method "conditional_use" to enable optional features if a given module is present.
That could be the perfect example: if Module::Refresh is installed, then we use it, otherwise, nothing prevents Dancer from running, but the feature is disabled.
Yeah, sounds good. Maybe it's also worthwhile to take a look at Apache2::Reload which basically makes the same but for mod_perl. I have used it and kind of works, but for a broader view and to get to know how other modules and frameworks do it, should be ok.
Done in the auto_reload branch, remains to do the documentaiont bits.
http://github.com/sukria/Dancer/commit/3e069100dd098db3028c917d50547d5f4841c0ab
Merged into the master branch (documentation bits are done as well).
http://github.com/sukria/Dancer/commit/e1ef40322c428c1e4e65d3312ec21a809b2b67df
in my opinion, the development dance floor should allow the developer to reload the changes from disk on files without restarting the devel server.