Closed KES777 closed 5 years ago
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
Code simplification
Here is how Minion get path to its resources
merged into upstream
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