b_brew: Use 'brew' within a stage.

Description Usage Arguments See Also Examples

View source: R/pages.R

Description

This returns a function which can be passed as the page argument to a Stage object. When the page is shown brew will be called on filename. The variables id, period, params and error will be available within the brew file. params is a named list of HTML parameters. error is a character vector of errors, e.g. from a form submission. Typically it will be character(0).

Usage

1
b_brew(filename)

Arguments

filename

Path of the file to brew.

See Also

Other page creation: b_knit

Examples

1
2
3
4
## Not run: 
text_stage(page=b_brew("mybrewfile.html"))

## End(Not run)

hughjonesd/betr documentation built on May 17, 2019, 9:11 p.m.