blocks-in-if.pug 382 B

12345678910111213141516171819
  1. //- see https://github.com/pugjs/pug/issues/1589
  2. -var ajax = true
  3. -if( ajax )
  4. //- return only contents if ajax requests
  5. block contents
  6. p ajax contents
  7. -else
  8. //- return all html
  9. doctype html
  10. html
  11. head
  12. meta( charset='utf8' )
  13. title sample
  14. body
  15. block contents
  16. p all contetns