haoxins / gulp-file-include

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

Can I use different styles for different source files? #179

Closed Montaro2017 closed 4 years ago

Montaro2017 commented 4 years ago

For example: I have a some files include a same file:

index.html @@include("head.html")

home.html @@include("head.html")

Can i get this files' name and according that to use different style for tags?

Such as head.html

<li @@if(file.name=="index.html" class="active")>Index</li> <li @@if(file.name=="home.html" class="active")>Home</li>

And why is there no else?