pub fn render(baseline: &[u8], params: &Params) -> 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 full path replaces RK_REPO last.
The one scope shape replaces the scope
token, and the recorded style replaces the style token. The scope
shape rests on no parameter, so it substitutes always. An unresolved
style leaves its token standing, which only a preview renders under:
an apply refuses before reaching here.
The trunk and the line prefix substitute from the same parameters, so a target that renames either carries the new name in every artifact that names it rather than in the binary’s behavior alone.
The security policy’s marked spans resolve last, after every token, so a contact that happens to spell a token name lands literally rather than being read as one more substitution site.