22 lines
240 B
Text
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)
|
|
}
|
|
}
|