chore: add comment for ideas later
This commit is contained in:
1 parent
1402fd24d9
commit
431a8f244a
1 file changed
+3
@@ -99,6 +99,9 @@ pub async fn create_sample_submission(student_info: ExpandableInfo) -> Result<()
|
|||||||
#[server(CreateExamplePdf, endpoint = "/example-pdf")]
|
#[server(CreateExamplePdf, endpoint = "/example-pdf")]
|
||||||
pub async fn create_example_pdf() -> Result<Vec<u8>, ServerFnError> {
|
pub async fn create_example_pdf() -> Result<Vec<u8>, ServerFnError> {
|
||||||
// Create typst template. This will be replaced with getting the template from S3 in the future.
|
// Create typst template. This will be replaced with getting the template from S3 in the future.
|
||||||
|
// The path I'm thinking, for now, is that we generate a series of "members" from the available
|
||||||
|
// keys that a student contains, prefixed with "student_". This means that to get the member
|
||||||
|
// "unweighted_gpa" we'll use the preprocess variable "student_unweighted_gpa".
|
||||||
let template = r#"
|
let template = r#"
|
||||||
= Testing Typst
|
= Testing Typst
|
||||||
This form will create a new student application. The PDF that's generated (like this one)
|
This form will create a new student application. The PDF that's generated (like this one)
|
||||||
|
|||||||
Reference in new issue
Block a user