pub mod templates;
#[derive(Debug, Clone)]
pub struct TemplateInfo {
pub id: &'static str,
pub name: &'static str,
pub description: &'static str,
}
pub fn list_templates() -> Vec<TemplateInfo> {
vec![TemplateInfo {
id: "hello-universe",
name: "Hello Universe!",
description: "Minimal QTTPS landing page — the quantum Hello World",
}]
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn templates_list_non_empty() {
let templates = list_templates();
assert!(!templates.is_empty());
}
#[test]
fn hello_universe_template_exists() {
let templates = list_templates();
assert!(templates.iter().any(|t| t.id == "hello-universe"));
}
}