Gulp, html templates and fragment loading

前端 未结 1 743
面向向阳花
面向向阳花 2021-01-19 21:02

I want to import html fragments at various places in a generated html file when I run it through a gulp task.

The following is my gulp task:

gulp.ta         


        
相关标签:
1条回答
  • 2021-01-19 21:45

    It looks like there are some gulp plugins already that give me most of what I want

    https://www.npmjs.org/package/gulp-file-include/

    and

    https://www.npmjs.org/package/gulp-file-includer/

    So I won't need to make an underscore mixin to get the functionality I want.

    However if anyone does want to show how I can do it with an underscore mixin I guess I would mark that as the answer - was thinking probably could figure it out from the assemble source.

    0 讨论(0)
提交回复
热议问题