I often have to do conversion from jade to HTML and back.
html2jade automatically puts
html
body
before my code, is there a way to circumvent this?
These lines from the html2jade.coffee script seem relevant:
if document.documentElement
@children document, output, false
else
# documentElement is missing.
# not sure why but this happens with jsdom when document has no body
# HACK: generate manually
htmlEls = document.getElementsByTagName 'html'
@element htmlEls[0], output if htmlEls.length > 0
I often have to do conversion from jade to HTML and back.
html2jade automatically puts
before my code, is there a way to circumvent this?
These lines from the html2jade.coffee script seem relevant: