M
M
Metroplex2016-03-30 11:01:29
HTML
Metroplex, 2016-03-30 11:01:29

What existing templating engine allows you to do include for "pure" HTML?

The template engine is required to do a simple thing: include a header and footer in layouts.
Other things. such as the syntax of the template engine are not interested. The main thing is to work with "pure" HTML.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Metroplex, 2016-03-30
@Metroplex

You can use gulp-rigger, but according to the Issues on Github it doesn't work with gulp-plumber.
I found an alternative for gulp-rigger, which I used.
https://www.npmjs.com/package/gulp-include
There is another option that has useful features.
https://www.npmjs.com/package/gulp-file-include

Q
quramolt, 2016-03-30
@quramolt

1. If you are only interested in the ability to collect HTML files piece by piece, then even the gulp-rigger plugin may be suitable for you. If, of course, you use gulp at work
Link to npm
Link to Github
2. And from template engines - well, at least Jade (now Pug)
Link to the relevant documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question