fmt := import("fmt") paths := import("paths") htmExt := func(c){ if c.is_compo { return } c.pp.print(``) } exts := { ".htm": htmExt, ".html": htmExt } export func(c){ ext := paths.ext(c.pp.filepath) ext = paths.ext( c.pp.filepath[:len(c.pp.filepath) - len(ext)] ) cl := exts[ext] if !is_undefined(cl) { cl(c) } }