From 62b20e4dc92fa253f2299f5de76d89ae562511f5 Mon Sep 17 00:00:00 2001 From: "Dawid J. Kubis" Date: Mon, 4 Oct 2021 12:51:45 +0200 Subject: [PATCH] formatting --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bfecdab..e23b69d 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,27 @@ # prezgen -A software for automatic generation of attendance lists for use at school. Our faculty/department uses physical attendance lists for logging every class and all the attendees. +A software for automatic generation of attendance lists for use at school. +Our faculty/department uses physical attendance lists for logging every class and all the attendees. This program is written in Rust in order to run as a single binary. ## Installation -Install rust/cargo, clone this repository and run `cargo build --release`. The binary will be saved to `target/build/release`. +Install rust/cargo (nightly edition), clone this repository and run `cargo build --release`. The binary will be saved to `target/build/release`. ## Usage -In order to generate a full set of lists (PDF files), you need to have a TOML source file and a template written in HTML. The program reads the input file, checks all relevant variables and tries to find them in the template. If a variable is found, it gets filled with data from the source file variable of the same name. In case the variable is not found in the template, it gets ignored and the program continues to the next variable. +In order to generate a full set of lists (PDF files), you need to have a TOML source file and a template written in HTML. +The program reads the input file, checks all relevant variables and tries to find them in the template. +If a variable is found, it gets filled with data from the source file variable of the same name. +In case the variable is not found in the template, it gets ignored and the program continues to the next variable. ### Template -The template has two sides, front and back. Both are static HTML files (with styles) ready for clean printing (`@media print` query). The template should contain variables, which would be later replaced by the generator. The format, in which a variable should be written, is `{{ variable_name }}` anywhere in the HTML document, for example: +The template has two sides, front and back. +Both are static HTML files (with styles) ready for clean printing (`@media print` query). +The template should contain variables, which would be later replaced by the generator. +The format, in which a variable should be written, is `{{ variable_name }}` anywhere in the HTML document, for example: ```html

{{ title }}