We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Tip: drag this floating card to move around. Your position is saved locally.
Visiting
/playground/goofy
extracts "goofy" as urlEntry,
passes it into the controller, and renders the template that shows Hello World, from 'word'.
Hello World, from goofy!
๐ง Page Mechanics
This page is powered by a Phoenix route and controller:
Route:
get "/playground/:urlEntry", InputANDUrlController, :showFromUrl
Controller:
def showFromUrl(conn, %{"urlEntry" => urlEntry}) do
render(conn, :showFromUrl, urlEntry: urlEntry)
end
Try replacing the word "goofy" with another word in the URL.