So fügen Sie eine CSS-Datei in Jade ein (ohne sie zu verknüpfen)

Ich habe diese Jadedatei:

!!! 5
html
  head
    title test include
    style(type='text/css')
      //- DOES NOT WORK!
      include test.css
  body
    //- works
    include test.css
    div 
      //- works
      include test.css

Die Ausgabe:

$ jade -P test.jade 
rendered test.html
$ cat test.html
<!DOCTYPE html>
<html>
  <head>
    <title>test include</title>
    <style type="text/css">
      //- DOES NOT WORK!
      include test.css
    </style>
  </head>
  <body>body { color: peachpuff; }

    <div> body { color: peachpuff; }

    </div>
  </body>
</html>

Natürlich könnte ich einfach die CSS-Datei verlinken, aber ich möchte nicht.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage