mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
add .log extension as renderable with text/plain controller
This commit is contained in:
parent
da533d8826
commit
de775e94a1
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue