Official Phoenix info GitHub Get Started
URL parameter greeting

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'.
๐Ÿšš Back to Home

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.