Returns the file at the given path as the response.
include_file(file, res, content_type) include_html(file, res) include_md(file, res, format = NULL) include_rmd(file, res, format = NULL)
The path to the file to return
The response object into which we'll write
If provided, the given value will be sent as the
Passed as the
include_html will merely return the file with the proper
content_type for HTML.
process the given markdown file through
rmarkdown::render and return
the resultant HTML as a response.