pug - What is the difference between "extends" and "include" in Jade? -
with both of these commands can use code file. see when use extends file.jade can use block, change blocks in file.jade before compilation. difference , right? thank you.
well, @laggingreflex wrote above, there docs on these commands: extends , include.
extra points: can use include different files, not jade files. also, can use include multiple times on page. command include content of different file, straight place. may @ it, if make big lego project using (including) different small pieces.
extends on contrary take big lego project , substitutes marked blocks pieces special block command. used once , overwrite content of destination file (file extends command).
Comments
Post a Comment