Files
sukr/Cargo.toml
Timothy DeHerrera 3df7fda26a feat(templates): add Tera runtime template engine
Lay groundwork for user-editable templates by adding Tera as a
runtime template engine alongside the existing maud templates.

Changes:
- Add tera dependency
- Create TemplateEngine struct with render methods
- Add TemplateLoad/TemplateRender error variants
- Add section_type/template fields to Frontmatter
- Create templates/ directory with base, page, section, and content templates

Dead code warnings are expected; TemplateEngine will be wired
in to replace maud in subsequent commits.
2026-01-31 14:59:49 -07:00

49 lines
1.1 KiB
TOML

[package]
description = "Bespoke static site compiler for nrd.sh"
edition = "2024"
license = "MIT"
name = "nrd-sh"
version = "0.1.0"
[dependencies]
gray_matter = "0.2"
maud = "0.26"
pulldown-cmark = "0.12"
thiserror = "2"
walkdir = "2"
# Syntax highlighting
tree-sitter = "0.26"
tree-sitter-bash = "0.23"
tree-sitter-c = "0.24"
tree-sitter-css = "0.25"
tree-sitter-go = "0.25"
tree-sitter-highlight = "0.26"
tree-sitter-html = "0.23"
tree-sitter-javascript = "0.25"
tree-sitter-json = "0.24"
tree-sitter-nix = "0.3"
tree-sitter-python = "0.25"
tree-sitter-rust = "0.23"
tree-sitter-typescript = "0.23"
tree-sitter-yaml = "0.7"
# CSS processing
lightningcss = "1.0.0-alpha.70"
# Config parsing
katex-rs = "0.2.3"
serde = { version = "1", features = ["derive"] }
tera = "1"
toml = "0.8"
# Diagram rendering
mermaid-rs-renderer = { version = "0.1", default-features = false }
# Patch dagre_rust to fix unwrap on None bug
[patch.crates-io]
dagre_rust = { path = "patches/dagre_rust" }
[dev-dependencies]
tempfile = "3.24.0"