HTML Preprocessor giúp chúng ta viết mã HTML nhanh với ít mã hơn.
Một số Preprocessor như: Pug ,Haml.
Ví dụ: index.jade
html
head
title= HelloWorld
body
h1 Using Jade to create HelloWorld web page
Compiled file: index.html
<!DOCTYPE html>
<html>
<head>
<title>HelloWorld</title>
</head>
<body>
<h1>Using Jade to create HelloWorld web page</h1>
</body>
</html>