Listing Products
| Name | Price | Actions |
|---|---|---|
|
45erg
|
162.69
|
|
|
mmnmnmn
|
97.02
|
|
|
s
|
1.96
|
|
|
bom
|
10.78
|
|
|
Kiwi
|
1.96
|
| Embedded in code | Value |
|---|---|
| @route.contact: | root@example.com |
| @route.locale: | en-001 |
| @route.region_display_name | Worldwide |
| Runtime values | Value | Source priority |
|---|---|---|
| @runtime.locale: | en-001 | [:query, :session, :accept_language, :attrs] |
| @runtime.language: | en | [:query, :attrs] |
| @runtime.region: | 001 | [:accept_language, :attrs] |
| Gettext.get_locale(): | en | Stateful process |
Verified Routes
Routex is fully compatible with Verified Routes
| Type | Code | Converted to |
| Auto | redirect(socket, url(~p"/")) | |
| Auto | redirect(socket, url(~p"/products")) | |
| Auto | ~p"/products/1 | |
| Fixed | ~p"/eu/products/1 |
Automated Helpers
Phoenix Route Helpers are disabled in this demo. The example code can be found in the template