What is the difference between template models and preprocessors?

There are Template Engines and there are preprocessors .

List of some template engines

  • Smarty
  • Twig
  • TinyButStrong

List of some preprocessors

  • Haml
  • Slim
  • Jade / pug

What is the difference?

+4
source share
1 answer

Haml, Slim and Jade / Pug do not define themselves as preprocessors or are different from template engines:

Haml is a markup language that is used to cleanly and easily describe the HTML of any web document without using inline code. Haml functions as a replacement for embedded page template systems.

Slim - ...

Pug - , Haml JavaScript

, . , . , , HTML, .

0

Source: https://habr.com/ru/post/1667268/


All Articles