trebuchet
trebuchet

Reputation: 1481

jade doctype is rendering as text

My jade file is as follows:

!!! 5
html(lang="en")
  head
    title test page
  body
    h1 hello world

But it renders as:

!!! 5
<html lang="en">
  <head>
    <title>test page</title>
  </head>
  <body>
    <h1>hello world</h1>
  </body>
</html>

I've tried just !!! as well as doctype - all render as text. Any ideas?

Upvotes: 0

Views: 275

Answers (1)

soulcheck
soulcheck

Reputation: 36777

Check if your file has a byte order mark in the beginning, if it does - remove it.

Some windows editors add it in order to distinguish endiannes.

Upvotes: 1

Related Questions