Bulma study case: Minimal page template

  1. Create function of the page by taking in consideration that:

    • Shiny will add the css dependency when running the app
    • It’s better to define another function to add each section.
bulma_page <- function(..., title = NULL) {
  tagList(
    tags$head(
      tags$meta(charset = "utf-8"),
      tags$meta(
        name = "viewport",
        content = "width=device-width, initial-scale=1"
      ),
      tags$title(title)
    ),
    add_bulma_deps(tags$body(...)) 
  )
}