Node.js jade - how to set content type in jade

I have a view in which the MIME type is returned. How to set content type in chapter section?

This is what i am trying to do

!!!
html
  head
    title #{site.title} - #{site.version}
    link(rel='stylesheet', href='/stylesheets/style.css')
    script(type='text/javascript', src='/javascripts/jquery-1.5.1.min.js')
    content-type #{mimetype}
  body!= body
+5
source share
1 answer

You can specify a meta tag for the content content as follows:

meta(http-equiv="content-type", content="#{contentType}; charset=UTF-8")

Remember that the tag for the content type <META ...

+15
source

All Articles