Update core.js

Adding yieldTemplates option