Keeping your templates under control