| 1 |
## ----include=FALSE------------------------------------------------------------ |
| 2 |
knitr::opts_chunk$set( |
| 3 |
collapse = TRUE, |
| 4 |
comment = "#>" |
| 5 |
) |
| 6 |
|
| 7 |
## ----setup, include=FALSE----------------------------------------------------- |
| 8 |
library(jinjar) |
| 9 |
|
| 10 |
## ----eval=FALSE--------------------------------------------------------------- |
| 11 |
# config <- jinjar_config(loader = path_loader("path", "to", "templates")) |
| 12 |
# output <- render(content, !!!data, .config = config) |
| 13 |
|
| 14 |
## ----clean_include, include=FALSE--------------------------------------------- |
| 15 |
unlink(c("header.html", "footer.html")) |
| 16 |
|
| 17 |
## ----clean_extends, include=FALSE--------------------------------------------- |
| 18 |
unlink(c("base.html")) |
| 19 |
|