render: Render a template file inside a layout

View source: R/render.R

renderR Documentation

Render a template file inside a layout

Description

Render a template file inside a layout

Usage

render(file, layout, dest, ...)

Arguments

file

name of a file containing content to render through render_content and the insert into a layout template. The extension of the file determines which rendering function is used. Allowed extensions are

".brew"

brew template, rendered by brew

".rmd"

R markdown template, rendered by knit2html

".rhtml"

R html template, rendered by knit

".md" or ".markdown"

markdown template, rendered by markdownToHTML

NB: the case of the extension does not matter, e.g. "Rmd" and "rmd" are equivalent. NB: to insert raw HTML or PHP into the layout template, just give the file an extension ".brew".

layout

path to layout template file

dest

path to destination directory

...

passed to render_content


jiho/yssr documentation built on Feb. 4, 2023, 7:48 p.m.