pub fn environment() -> Result<Environment<'static>, Error>Available on crate features
surface-model and surface-templates only.Expand description
Create an Environment that holds the shared fragments.
It is strict: an undefined variable is an error, not an empty string. It keeps the trailing newline of a template.
ยงErrors
Returns the Error from add_fragments.