Skip to main content

render_notification

Function render_notification 

Source
pub fn render_notification(
    event: &str,
    workflow_name: &str,
    page_title: &str,
    page_id: i64,
    task_name: Option<&str>,
    actor_username: Option<&str>,
    comment: Option<&str>,
) -> (String, String)
Expand description

Compose the standard subject + body for a workflow event. Format kept deliberately plain — production deployments can override by replacing the call site with a Tera-rendered body.