Skip to main content

render

Function render 

Source
pub fn render(
    graph: &DroneGraph,
    m: &JobTemplateManifest,
    given: &Map<String, Value>,
) -> Result<DroneGraph, String>
Expand description

The graph with each {{param.NAME}} replaced by its parameter’s value (the given one, else the default). The values go in once and are never read for placeholders. A {{ that a value contains, or that a value forms with the text next to it, is refused: the drone’s own templating would read it at run time.