Grunt: Access Sequence/List Data from External YAML File
问题 I am trying to access values from an external YAML file in my Gruntfile using: external = grunt.file.readYAML('_config.yml'); The _config.yml file has the following example data: computer: parts: - name: brand1 type: cpu - name: brand2 type: gpu - name: brand3 type: hd I've been trying to access the multi-level YAML data using <%= %> grunt templating to get the different name and type values. module.exports = { concat: { src: ['htdocs/<%= external.computer.parts['type'] %>/<%= external