Static file router

Static file router

Details

Creates a router that is backed by a directory of files on disk.

Super classes

plumber::hookable -> plumber::plumber -> plumberstatic

Methods

Public methods

Inherited methods

Method new()

Create a new plumberstatic router

Usage

PlumberStatic$new(direc, options)

Arguments

direc

a path to an asset directory.

options

options to be evaluated in the plumberstatic router environment

Returns

A new plumberstatic router


Method print()

Print representation of PlumberStatic() router.

Usage

PlumberStatic$print(prefix = "", topLevel = TRUE, ...)

Arguments

prefix

a character string. Prefix to append to representation.

topLevel

a logical value. When method executed on top level router, set to TRUE.

...

additional arguments for recursive calls

Returns

A terminal friendly represention of a PlumberStatic() router.


Method clone()

The objects of this class are cloneable with this method.

Usage

PlumberStatic$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.