|laziness, impatience, and hubris|
Mojolicious: Optional placeholder and template nameby frazap (Monk)
|on May 17, 2019 at 14:16 UTC||Need Help??|
frazap has asked for the wisdom of the Perl Monks concerning the following question:
I have a small Mojolicious app that display a page
And load a libmap.html.ep template in the ./template folder.
This file uses js files that are in the ./public folder.I would add a locale in the url: ....:3000/fr/libmap, without having any other change in the path of the template or public folders,
but it fails with Page not found...
What am I missing ?Thanks!
Edit: I have a utils.js file that is searched in public/fr/utils.js folder instead of public/utils.js folder.
That were the problem is... How can I keep on with having all my js files in ./public and not in public/fr, public/en ... ?