add .log extension as renderable with text/plain controller

This commit is contained in:
yggverse 2025-06-27 07:45:02 +03:00
parent da533d8826
commit de775e94a1

View file

@ -227,6 +227,7 @@ fn render(
Err(e) => failure(&p, &e.to_string()), Err(e) => failure(&p, &e.to_string()),
}) })
} else if q.ends_with(".txt") } else if q.ends_with(".txt")
|| q.ends_with(".log")
|| q.ends_with(".gmi") || q.ends_with(".gmi")
|| q.ends_with(".gemini") || q.ends_with(".gemini")
|| q.ends_with("/") || q.ends_with("/")
@ -242,6 +243,8 @@ fn render(
p.content.to_text_source(d) p.content.to_text_source(d)
} else if q.ends_with(".gmi") || q.ends_with(".gemini") { } else if q.ends_with(".gmi") || q.ends_with(".gemini") {
p.content.to_text_gemini(&u, d) p.content.to_text_gemini(&u, d)
} else if q.ends_with(".log") {
p.content.to_text_plain(d)
} else { } else {
p.content.to_text_nex(&u, d) p.content.to_text_nex(&u, d)
}; };