Skip to main content

read_document

Function read_document 

Source
pub fn read_document(path: &Path) -> Result<Value>
Expand description

A comp file’s document as written (JSON, or YAML for .yaml/.yml), templates not expanded (crate::templates::expand does that).

§Errors

An unreadable file or bad JSON/YAML.