ambiorix-web / ambiorix

🖥️ Web framework for R
http://ambiorix.dev
GNU General Public License v3.0
211 stars 9 forks source link

ft: improve handling of shiny and htmltools tags #78

Closed kennedymwavu closed 1 day ago

kennedymwavu commented 1 day ago

closes #76 & #77

with this PR, this reprex now works as expected:

# app.R
library(ambiorix)
library(htmltools)

app <- Ambiorix$new()

app$get("/", \(req, res){
  x <- tagList(
    tags$h1("hello"),
    tags$h2("there")
  )
  res$send(x)
})

app$start()
JohnCoene commented 1 day ago

Looks good, thanks!