Answer the question
In order to leave comments, you need to log in
How to "teach" Jade to react to doctype when compiling?
It turned out that Jade does not close single tags if specified doctype html
(which compiles to <!DOCTYPE html>
), even if there is a slash at the end of the line. However, if doctype is not specified, single tags are closed:
Jade: meta(charset="utf-8")/
HTML:
<meta charset="utf-8"/> <!-- Without a doctype -->
<meta charset="utf-8"> <!-- With doctype -->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question