feat: implement reports

This commit is contained in:
alexm committed 2026-09-19 20:06:41 -04:00
1 parent 6ae993d393
commit 994e9065e8
28 files changed
+7082 -63

No files matched your search

+8
View File
@@ -76,6 +76,12 @@ const EMBEDDED_KEY: &str = include_str!("templates/key.typ");
/// The bundled answer sheet template.
const EMBEDDED_ANSWER_SHEET: &str = include_str!("templates/answer-sheet.typ");
/// The bundled student diagnostic template.
const EMBEDDED_STUDENT_REPORT: &str = include_str!("templates/student-report.typ");
/// The bundled class diagnostic template.
const EMBEDDED_COHORT_REPORT: &str = include_str!("templates/cohort-report.typ");
/// An injection point a template can declare.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum Slot {
@@ -174,6 +180,8 @@ pub fn embedded(variant: Variant) -> &'static str {
Variant::Exam => EMBEDDED_EXAM,
Variant::Key => EMBEDDED_KEY,
Variant::AnswerSheet => EMBEDDED_ANSWER_SHEET,
Variant::StudentReport => EMBEDDED_STUDENT_REPORT,
Variant::CohortReport => EMBEDDED_COHORT_REPORT,
}
}