template: introduce a colfmt function to better mesh with text/template