I have this code in a file
iframe(src="file2.jade" width='100%' height='4000' frameborder=0 scrolling='no')
Adding .jade file to an iframe does not make sense. Iframes are processed by a browser, and browser expects html, not jade.
So the answer depends on what are you trying to do, maybe
include directive will help.