KES777 / mojo

Mojolicious - Perl real-time web framework
http://mojolicio.us
Artistic License 2.0
0 stars 0 forks source link

Remove use of Mojo::Home #63

Closed KES777 closed 5 years ago

KES777 commented 5 years ago

Summary

In both Mojolicious::Renderer and Mojolicious::Static, Mojo::File is already being used. Rather than using Mojo::Home, we can use path(__FILE__) to shorten the detection of the resources paths. This more closely mimics what is done in Minion

Motivation

Code simplification

References

Here is how Minion get path to its resources

KES777 commented 5 years ago

merged into upstream