Skip to contents

Find moustache tags in a string or file. find_tags_str will find tags in a string. find_tags_xml and find_tags_toml will find tags in a file after using an apropriate way to read it. Finally, find_tags will call above mentioned functions depending on its input.

Usage

find_tags(template)

find_tags_xml(template)

find_tags_toml(template)

find_tags_str(template)

Arguments

template

String that represents path to xml, toml file or text that contain tags. For the find_tags function, if the string is a path to an existing file, first read as using the TOML parser or as a plain text depending if the extension of file is .toml or .xml.

Value

list of moustache tags

Examples

find_tags("Foo bar {{baz}}")
#> [1] "baz"