Launches an example API that demonstrates htmxr features.
Call hx_run_example() without arguments to list available examples.
Value
Called for side effects. When example is NULL, returns the
available example names invisibly. Otherwise does not return (the server
blocks).
Examples
hx_run_example() # list available examples
#> Available examples: delete-row, hello, infinity-scroll, json-endpoint, select-input, toast-notification
#> Run one with: hx_run_example("hello")
if (interactive()) {
hx_run_example("hello") # run the hello example
}
