Skip to main content

templates_from

Function templates_from 

Source
pub fn templates_from(
    sources: &[SourceInfo],
) -> (Vec<PromptTemplate>, Vec<Diagnostic>)
Expand description

pi’s prompt template loading over sources, in order, each with its source: markdown files, or directories of them. The first template of a name wins, and later ones are reported as collisions. Missing paths are skipped, and the caller reports the command line’s.