staticView: Respond with a static file

Description Usage Arguments Value Examples

Description

Respond with a static file

Usage

1
staticView(staticDir, urlPath)

Arguments

staticDir

Location of the static files on the server.

urlPath

URL path to the static files.

Value

A response object or NULL if the file is not found.

Examples

1
2
3
4
## Not run: 
staticFun <- staticView("/var/www/static/", "/static/")

## End(Not run)

bobjansen/mattR documentation built on May 9, 2019, 9:57 p.m.