pandoc_template: Render a pandoc template.

View source: R/pandoc.R

pandoc_templateR Documentation

Render a pandoc template.

Description

Use the pandoc templating engine to render a text file. Substitutions are done using the metadata list passed to the function.

Usage

pandoc_template(metadata, template, output, verbose = FALSE)

Arguments

metadata

A named list containing metadata to pass to template.

template

Path to a pandoc template.

output

Path to save output.

verbose

TRUE to show the pandoc command line which was executed.

Value

(Invisibly) The path of the generated file.


rmarkdown documentation built on Nov. 4, 2024, 5:06 p.m.