P
P
President422015-01-23 20:21:12
Pug
President42, 2015-01-23 20:21:12

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 -->

Is there any way to make Jade not react to doctype and compile by concept?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Timofeev, 2015-01-24
@PyTiMa

answer question: why? :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question