feat: implement reports
This commit is contained in:
28 files changed
+7082
-63
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user