plagiarism-basic
plagiarism-basic copied to clipboard
Cannot produce HTML output because of missing template
When downloading the executable from the releases page, it is not possible to produce html output. I get the following error:
Thread 'main' panicked at 'Cannot open template path /home/sriram/Projects/plagiarism-basic/plagiarismbasic_lib/templates/report.hbs
So it seems the template path is hard-coded?
Ah, it appears that when the executable was generated, it used the entire path of where it was built to find the template directory: const TEMPLATE_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/report.hbs");
That's not intended. Let me see how I can fix it.