adamayres/gulp-wrap — pull request #10 by giladgray (2014-11-28 19:23:16+00:00)
Title: Parse JSON and YAML files automatically

This plugin seems to be missing one essential feature, which is the ability to actually use the contents of data files within the template. The examples all show `src`ing JSON files but you can't access the data inside the template because the file is provided as a string rather than a parsed object.

This PR adds automatic parsing for JSON and YAML files (by file extension) which can be disabled by an option flag.