route {shiny.router} | R Documentation |
Create single route configuration.
Description
Create single route configuration.
Usage
route(path, ui, server = NA)
Arguments
path |
Website route. |
ui |
Valid Shiny user interface. |
server |
Function that is called as callback on server side [deprecated] |
Value
A route configuration.
Examples
## Not run:
route("/", shiny::tags$div(shiny::tags$span("Hello world")))
route("main", shiny::tags$div(h1("Main page"), p("Lorem ipsum.")))
## End(Not run)
[Package shiny.router version 0.3.1 Index]