Open avalanche1 opened 8 years ago
Hi, Krisitan!
with currentPhoto img.ui.image(src="#{dataURL}") else #noPhotoSeparator
compiles fine;
with currentPhoto img.ui.image(src="#{dataURL}") //if there is no photo else #noPhotoSeparator
throws Jade syntax error: Unexpected else block.
Jade syntax error: Unexpected else block
Note that the comment isn't actually inside the with block. It would have to be indented one more level.
with
Out of curiosity, does //- if there is no photo work in that same spot?
//- if there is no photo
No, it does not.
Hi, Krisitan!
compiles fine;
throws
Jade syntax error: Unexpected else block
.