A
A
Andrey2015-04-23 14:50:20
HTML
Andrey, 2015-04-23 14:50:20

What is the easiest way to implement html include?

Greetings, I need the ability to include pieces of code from one file to another without using a template engine or using some kind of html-allowing syntax. Maybe use post-processing? I used to use jade, but here the project does not allow this

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey B., 2015-04-23
@svistiboshka

gulp-rigger
The insertion itself happens like this
//= template/header.html

M
Mikhail Lyalin, 2015-04-23
@mr_jok

SSI
HTML Import - Include for the Web: Part 2

X
xmoonlight, 2018-07-30
@xmoonlight

includeHTML - can load parts of HTML markup either via an HTML tag or as a function. Asynchronously, synchronously, call-back support, correct recursive loading of all nested parts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question