Skip to main content

render

Function render 

Source
pub fn render(
    baseline: &[u8],
    repo: &str,
    scopes: &[String],
    style: Option<Style>,
) -> Vec<u8> 
Expand description

Substitute the landing parameters into a rendered file’s bytes.

The repository’s owner — the project path’s first segment — replaces every OWNER occurrence, the scope list replaces the two scope tokens, and the recorded style replaces the style token. An empty scope list — or an unresolved style — leaves its tokens standing, which only a preview renders under; an apply refuses before reaching here.