glue_js: Create a JS string with glue insertions glue .open = !@ &...

View source: R/utils_shiny.R

glue_jsR Documentation

Create a JS string with glue insertions glue ⁠.open = !@⁠ & ⁠.close = @#⁠

Description

Create a JS string with glue insertions glue ⁠.open = !@⁠ & ⁠.close = @#⁠

Usage

glue_js(
  js,
  as_chr = FALSE,
  e = rlang::caller_env(),
  .open = "*{",
  .close = "}*"
)

Arguments

js

chr JS code to glue

as_chr

lgl Whether to use as_js on the output FALSE or as.character TRUE. Default FALSE

e

env calling environment

Value

chr

See Also

Other shiny: as_js(), nm_to_id(), path_strip_shiny(), path_strip_to(), read_js(), shiny_error_recover(), strip_html()

Examples

glue_js("$(document).ready(() => {let x = *{tolower(FALSE)}*)")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.