Reorganized to a single file per template (metadata can be extracted from the template itself).