pixsy/node_modules/pug-lexer/test/cases/blocks-in-if.pug

20 lines
382 B
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
//- see https://github.com/pugjs/pug/issues/1589
-var ajax = true
-if( ajax )
//- return only contents if ajax requests
block contents
p ajax contents
-else
//- return all html
doctype html
html
head
meta( charset='utf8' )
title sample
body
block contents
p all contetns