R
R
Roman Nazarkin2017-07-15 20:34:50
Building projects
Roman Nazarkin, 2017-07-15 20:34:50

Which template engine to choose for building front-end projects?

I put together a small gulp config for building front-end projects while using nunjucks as a template engine, but I don't like its almost zero support among text editors - there are problems in the team, because everyone has a different environment.
In this regard, I am looking for a replacement, preferably something as common as possible or even native to HTML syntax, so as not to explain to new team members "what is here and how".
Of the functionality, only elementary template inheritance is of interest so that there is no repeating code inside the project - the header is in a separate file, the layout is also in a separate one.
Google advises a lot of things, but the zoo in this area is actually terrible now - who will advise what from experience?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-07-15
@TrickyMilk

If it's completely native, then you can try some plugins for gulp, such as gulp-file-include , gulp-html-extend , etc.
If you look from templating engines, then I advise Pug
(former Jade): it is widely distributed, used by default in Express, it can do everything that templating engines should be able to do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question