Template injection