A
A
Alyosha2017-08-08 20:37:13
css
Alyosha, 2017-08-08 20:37:13

Who uses what template engine for layout?

You need to organize the very minimum to insert a header and footer, what is better to use with browsersync? Let me know who is using what.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ilya Reshetnikov, 2017-08-08
@GIBRID21

1. If primitive imports are needed, then you can add a call to the module that will "import" for example
2. If you use php, you can use Twig
3. If you need a full-fledged template engine without being tied to the backend, I like to use

  • pug.js (formerly Jade)
  • nunjacks

A
Alexander Talalaev, 2017-08-08
@neuotq

If you just need to lay out, without any fuss with the backend and stuff, then one of the easiest ways to use Blendid .
There, out of the box, there will be a ready-made and convenient minimum of tools so that a full-fledged static site will come out.
If you are developing on windows, there is a small bug (actually not with him, but rather with yarn and or gulp) and you will need to run the blendid binary directly: "C:\blahblah\node_modules\.bin\blendidwell, respectively with the commands: "C:\blahblah\node_modules\.bin\blendid initor "C:\blahblah\node_modules\.bin\blendid build. It uses nunjucks
as a direct templating engine , browsersync is present and works as it should.
In short, the thing is convenient if you just need to make it up.

M
Max Gir, 2017-08-08
@max2gir

nunjucks is the most normal and the syntax is like regular html

E
Egor Zhivagin, 2017-08-09
@Krasnodar_etc

I really love EJS! But this is for those who write on the node

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question