| render_epoxy {epoxy} | R Documentation | 
Render Epoxy Output
Description
Server-side render function used to provide values for template items. Use
named values matching the template variable names in the associated
ui_epoxy_html() or ui_epoxy_mustache(). When the values are updated by
the app, render_epoxy() will update the values shown in the app's UI.
Usage
render_epoxy(
  ...,
  .list = NULL,
  env = parent.frame(),
  outputFunc = ui_epoxy_html,
  outputArgs = list()
)
renderEpoxyHTML(..., env = parent.frame())
Arguments
| ... | Named values corresponding to the template variables created with
the associated  | 
| .list | A named list or a  | 
| env | The environment in which to evaluate the  | 
| outputFunc | Either  | 
| outputArgs | A list of arguments to be passed through to the implicit
call to  | 
Value
A server-side Shiny render function that should be assigned to
Shiny's output object and named to match the .id of the corresponding
ui_epoxy_html() call.
Functions
See Also
ui_epoxy_html(), ui_epoxy_mustache()
Examples
# This small app shows the current time using `ui_epoxy_html()`
# to provide the HTML template and `render_epoxy()` to
# update the current time every second.
ui <- shiny::fluidPage(
	shiny::h2("Current Time"),
	ui_epoxy_html(
		"time",
		shiny::p("The current time is {{strong time}}.")
	)
)
server <- function(input, output, session) {
	current_time <- shiny::reactive({
		shiny::invalidateLater(1000)
		strftime(Sys.time(), "%F %T")
	})
	output$time <- render_epoxy(time = current_time())
}
if (rlang::is_interactive()) {
	shiny::shinyApp(ui, server)
}
run_epoxy_example_app("render_epoxy")