Listing Products

NamePrice Actions
Bananas
2.1
Apples
1.4
Oranges
3.5

Alternatives

The extension AlternativeGetters makes it easy to link to alternative pages.

Embedded in code Value
@route.contact: sales@example.com
@route.locale: en-GB
@route.region_display_name United Kingdom
 
Runtime values Value Source priority
@runtime.locale: en-GB [:query, :session, :accept_language, :attrs]
@runtime.language: en [:query, :attrs]
@runtime.region: GB [: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