Will keep notes of some of the mojo tips I got.
1.A helper command to generate app for us.
1
|
|
This will generate Mojolicious application directory structure.
1
|
|
This will generate Mojolicious::Lite application for us.
1
|
|
This will generate the app with the name “hello”
2.about deploying your app to heroku
1 2 3 4 5 |
|
3.In mojo, something like “hello.html.ep”, here “ep” stands for “embedded perl”, we can have html.ep, json.ep, txt.ep.
4.Three kinds of placeholders.
generic placeholders:
1 2 3 |
|
relaxed placeholders:
1 2 3 |
|
wildcard placeholders:
1 2 3 |
|