add dynamic template insertion feature (target: 'template')