Skip to main content

render

Function render 

Source
pub fn render(policy: &Policy) -> Result<Vec<RenderedOutput>>
Expand description

Render all .cursor/rules/ outputs for the given policy.

Always produces default.mdc (global, alwaysApply: true). Additionally produces one .mdc per role that has at least one editable path, with globs set to those patterns so Cursor activates the rule automatically.

ยงErrors

Returns Error::Render if any template fails to compile or render.