Launches an example API that demonstrates alpiner features. Both
x_serve_assets() and htmxr::hx_serve_assets() are wired up so examples
can combine Alpine.js with htmx out of the box. Call x_run_example()
without arguments to list available examples.
Usage
x_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).