Skip to main content

Crate rift_ejs

Crate rift_ejs 

Source
Expand description

The EJS template subset Rift’s config loader evaluates, shared by the engine and rift-lint (issue #1108) so both read a templated config the same way.

The four supported tags and every refusal are documented on render. This crate has no rift dependencies, which is what lets rift-lint use it: rift-http-proxy dev-depends on rift-lint.

Structs§

Rendered
A document with its tags rendered.
UnsetEnv
An environment variable a tag read but could not substitute.

Enums§

EjsError
Why a document could not be rendered. Each message names the tag or file and where it is.
EnvProblem
Why a variable could not be substituted (issue #1116).
FileAccess
Whether EJS tags that read the local filesystem are honoured.

Functions§

has_tags
True when content holds anything that looks like a tag, so render would change or refuse it.
render
Pre-process EJS tokens in a config file before JSON/YAML parsing.