Render a View

Views are server side rendered pages

#src/routes/web.cr

get "/account" do
  render "src/views/hello.ecr"
end
Macro Value1 Detail
render src/views/hello.ecr you pass down the ecr view that you want to render on that route

results matching ""

    No results matching ""