template type can only be either php, md, or raw (in any other case)