add_server_layer | R Documentation |
Add a server layer to a tower. This layer will run before the 'shiny' app's server function. This is useful for adding custom logic to the server function without modifying the original server function.
add_server_layer(tower, layer)
tower |
A tower |
layer |
A function that takes input, output, and session and has no return value. This function will be called before the original server function. If you want to short-circuit the server use an exception. |
The tower with the added layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.