inst/doc/auxiliary-templates.R

## ----include=FALSE------------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup, include=FALSE-----------------------------------------------------
library(jinjar)

## ----eval=FALSE---------------------------------------------------------------
#  config <- jinjar_config(loader = path_loader("path", "to", "templates"))
#  output <- render(content, !!!data, .config = config)

## ----clean_include, include=FALSE---------------------------------------------
unlink(c("header.html", "footer.html"))

## ----clean_extends, include=FALSE---------------------------------------------
unlink(c("base.html"))

Try the jinjar package in your browser

Any scripts or data that you put into this service are public.

jinjar documentation built on Nov. 2, 2023, 5:37 p.m.