## ------------------------------------------------
## Method `HTMLBlock$from_list`
## ------------------------------------------------
HTMLBlock <- getFromNamespace("HTMLBlock", "teal.reporter")
block <- HTMLBlock$new()
block$from_list(list(content = shiny::tags$div("test")))
## ------------------------------------------------
## Method `HTMLBlock$to_list`
## ------------------------------------------------
HTMLBlock <- getFromNamespace("HTMLBlock", "teal.reporter")
block <- HTMLBlock$new(shiny::tags$div("test"))
block$to_list()
Run the code above in your browser using DataLab