kyra/mod/post.xgo
2024-08-02 20:30:32 +05:00

22 lines
240 B
Text

paths := import("paths")
htmExt := func(c){
if c.is_compo {
return
}
c.pp.print(`</body></html>`)
}
exts := {
".htm": htmExt,
".html": htmExt
}
export func(c){
ext := c.fext
cl := exts[ext]
if !is_undefined(cl) {
cl(c)
}
}