Skip to main content

compose_routing

Function compose_routing 

Source
pub fn compose_routing(
    template: &str,
    guards: Option<&RoutingGuards<'_>>,
) -> String
Expand description

The routing block from its authored template, with the workflow guards’ two fragments where the target selects them.

Markers included, without a trailing newline and with its scope token unrendered. A token is a prefix of the next content line, so an absent fragment leaves no blank line behind.