R/as_html.R

Defines functions as_html

# add class html and attr('html') <- TRUE to spoof htmltoolts::HTML(css) output
as_html <- function(x, extra_class = NULL) {
  class(x) <- c(extra_class, "html", "character")
  attr(x, "html") <- TRUE
  x
}

Try the sass package in your browser

Any scripts or data that you put into this service are public.

sass documentation built on July 26, 2023, 5:08 p.m.