Skip to contents

Merges every source's templates unless source scopes it to one. If two sources define the same name, the most recently lq_fetch()ed source wins — see lq_init()'s multi-source details.

Usage

lq_list(path, source = NULL)

Arguments

path

Path to the library.

source

List only this source's templates.

Value

A lenguar_templates data frame with name, title, and source columns, sorted by name.

Examples

store <- withr::local_tempdir()
lq_init(store)
lq_add(store, "hello.md", "Hi {{ name }}!", title = "Hello")
lq_list(store)
#> lengua: 1 template
#>       name title source
#> 1 hello.md Hello  local