stringCSSRule: Evaluate a css template

View source: R/utils.R

stringCSSRuleR Documentation

Evaluate a css template

Description

Applies a CSS statement template stored in the package settings. These templates use the htmlTemplate format, meaning placeholders are marked using the placeholder convention. Each placeholder value should be passed as a named argument to the function using the placeholder value as a name. Used primarily as a shorthand to stringTemplate for stored templates.

Usage

stringCSSRule(template, ...)

Arguments

template

The template name to use. Available templates are saved in options, under getOption("imola.settings")$string_templates.

...

Named arguments to use in the template string. All placeholders in the template must have a corresponding named argument.

Value

A valid CSS string.


imola documentation built on April 19, 2022, 5:09 p.m.