kyra/mod/post.xgo

23 lines
240 B
Text
Raw Normal View History

2024-06-09 15:16:38 +03:00
paths := import("paths")
htmExt := func(c){
if c.is_compo {
return
}
c.pp.print(`</body></html>`)
}
exts := {
".htm": htmExt,
".html": htmExt
}
export func(c){
2024-08-02 18:30:32 +03:00
ext := c.fext
2024-06-09 15:16:38 +03:00
cl := exts[ext]
if !is_undefined(cl) {
cl(c)
}
}