PerlDancer / Dancer

The easiest way to write web applications with Perl (Perl web micro-framework)
http://perldancer.org/
739 stars 211 forks source link

wishlist: modifying files while dancing and executing those changes #1

Closed damog closed 14 years ago

damog commented 14 years ago

in my opinion, the development dance floor should allow the developer to reload the changes from disk on files without restarting the devel server.

sukria commented 14 years ago

Totally agree

sukria commented 14 years ago

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.

damog commented 14 years ago

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.

sukria commented 14 years ago

Done in the auto_reload branch, remains to do the documentaiont bits.

http://github.com/sukria/Dancer/commit/3e069100dd098db3028c917d50547d5f4841c0ab

sukria commented 14 years ago

Merged into the master branch (documentation bits are done as well).

http://github.com/sukria/Dancer/commit/e1ef40322c428c1e4e65d3312ec21a809b2b67df