gatsby 0.0.0

Gatsby static site generator compiler in Rust
Documentation
//! HTML 渲染器

use std::collections::HashMap;

/// HTML 渲染器
pub struct HtmlRenderer {
    /// 渲染配置
    config: HashMap<String, String>,
}

impl HtmlRenderer {
    /// 创建新的 HTML 渲染器
    pub fn new() -> Self {
        Self { config: HashMap::new() }
    }

    /// 渲染 Markdown 内容为 HTML
    pub fn render(&self, content: &str) -> String {
        // 简单的渲染实现
        content.to_string()
    }
}

impl Default for HtmlRenderer {
    fn default() -> Self {
        Self::new()
    }
}