Generate script from js template

script_from_js_tpl(file, ...)

Arguments

file

path to a js file

...

mutiple named arguments with the value to replace

Examples

if (FALSE){
  # replaces {init} to 0
  script_from_js_tpl("script.js", init = "init")
}