read images

This commit is contained in:
Jonathan Ouwerx 2022-10-24 14:55:19 +03:00
parent 17169cbcd7
commit 2ba237e505
2 changed files with 11980 additions and 3 deletions

11978
index.html

File diff suppressed because it is too large Load Diff

View File

@ -9,14 +9,15 @@ pub fn ticket_front(qr string) string {
}
pub fn run_before() {
qrs := ['test']
mut qr_paths := os.walk_ext('qrs', 'png')
mut html := ''
os.rm('index.html') or { panic(err) }
mut index_file := os.create('index.html') or { panic('Failed to create index.html file: $err') }
println('debug:${typeof(index_file)}')
println('debug: ${ticket_front('test')}')
index_file.write_string('<div>') or { panic('Failed to write <div> to index.html file: $err') }
for qr in qrs {
for qr in qr_paths {
index_file.write_string(ticket_front(qr)) or {
panic('Failed to write qr: $qr to index.html file: $err')
}