Template library for multiple formats, which can interoperate