There are 3 files:
head.jade

meta(charset="utf-8") 

footer.jade

  footer p 

index.jade

 doctype html html head include parts/head body include parts/footer 

When compiling I get an error:

 Warning: missing space before text for line 1 of jade file "/media/g-dogg/DATA/Web_Projects/MyIzm/src/tpl/parts/head.jade" Warning: missing space before text for line 1 of jade file "/media/g-dogg/DATA/Web_Projects/MyIzm/src/tpl/parts/footer.jade" events.js:160 throw er; // Unhandled 'error' event ^ Error: /media/g-dogg/DATA/Web_Projects/MyIzm/src/tpl/parts/footer.jade:2 1| footer > 2| p unexpected token "indent" 

Already rummaged everything that I could, I can not understand. what does he need I ask for help

  • Most likely it swears at a large indent at the p tag in the footer.jade file, make all the indents the same in all the files - greybutton
  • That's the problem that I checked and aligned all indents, everywhere I use tabs. Editor sublime text 3, OS - linux. There are no spaces after tags. - Ghost Dogg
  • one
    @GhostDogg is not about your tabs or spaces. In footer 1 level of indents is superfluous, they should not be there at all. - Beast Winterwolf

1 answer 1

First, I don’t know how you use jade if it was renamed pug long ago. I will show the example of pug. I personally compiled everything without errors. Here is the source archive . First install pug globally: npm i pug-cli -g , then compile: pug index.pug . I got this output html: <!DOCTYPE html><html><head><meta charset="utf-8"></head><body><footer><p></p></footer></body></html> .

Apparently you have extra padding in the footer.

  • Thanks for the information. Rename to pug, I "by the ears" missed. So, I will make changes to my auto-build scripts and test them. - Ghost Dogg