Launches an example API that demonstrates htmxr features.
Call hx_run_example() without arguments to list available examples.
Usage
hx_run_example(example = NULL, port = 8080)
Arguments
- example
name of the example to run. If NULL, lists available
examples.
- port
port to run the API on.
Value
Called for side effects. When example is NULL, returns the
available example names invisibly. Otherwise does not return (the server
blocks).
Examples
if (FALSE) { # \dontrun{
hx_run_example() # list available examples
hx_run_example("hello") # run the hello example
} # }