Skip to main content

render_daemon_templates

Function render_daemon_templates 

Source
pub fn render_daemon_templates(
    config: &mut PitchforkTomlDaemon,
    context: &TemplateContext,
) -> Result<(), RenderError>
Expand description

Render all template-enabled fields of a daemon config.

Modifies the config in place. Returns the first error encountered from non-hook fields (run, env, ready_cmd). Hook template errors are logged as warnings and the hook is set to None — hooks are re-rendered at fire time via fire_hook, so pre-rendered hook strings are unused.