systemprompt-generator 0.1.18

Static site generation for systemprompt.io
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod types;

pub use types::TemplateDataParams;

use anyhow::Result;
use serde_json::Value;

pub async fn prepare_template_data(params: TemplateDataParams<'_>) -> Result<Value> {
    Ok(serde_json::json!({
        "CONTENT": params.content_html,
        "TOC_HTML": params.toc_html,
        "SLUG": params.slug,
    }))
}