addResourcePath {tabler}R Documentation

Register a Directory of Static Resources

Description

Serves files under directoryPath at URLs beginning with /prefix/, mirroring shiny::addResourcePath(). Use this to serve an app's own CSS/JS/image assets (e.g. from inst/app/www) without depending on shiny or golem.

Usage

addResourcePath(prefix, directoryPath)

Arguments

prefix The URL prefix (e.g. "www" serves files at /www/...).
directoryPath Absolute path to the directory to serve.

Value

Invisibly, NULL.

Loading...