haoxins / gulp-file-include

MAINTAINER WANTED ~ [gulp-file-include] a gulp plugin for file include
MIT License
677 stars 95 forks source link

Allow include to reference an external json file #149

Closed davidpanik closed 3 years ago

davidpanik commented 6 years ago

Added some extra code to includeHandler to allow doing this:

@@include('./fixtures/var.html', '/test/fixtures/index-06.json')

as well as this:

@@include('./fixtures/var.html', { "name": "haoxin", "age": 12345 })

This creates closer behaviour to @@loop without having to use a handler and is discussed in this issue:

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-1.0%) to 83.099% when pulling e856c816d2313a16cc45d85617b0465c7458491f on davidpanik:master into 9c84c87a16528b5e250ab9b24b32920b227b10ea on coderhaoxin:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-2.9%) to 81.221% when pulling c2d093b24aebc56a87b7de5411f7dc455964724b on davidpanik:master into 9c84c87a16528b5e250ab9b24b32920b227b10ea on coderhaoxin:master.