Reputation: 3
I have this code in a file .jade
:
iframe(src="file2.jade" width='100%' height='4000' frameborder=0 scrolling='no')
the file2
file is in the same folder as this file, but does not insert the file, what can I do?.
Thanks
Upvotes: 0
Views: 4706
Reputation: 2060
Add one more empty line above iframe
tag code with the same space (or tab), .
character is display for a space or tab I mention above.
article
..p Some text here (2 space after article block)
.. <--- An empty line with 2 space tab before iframe tag
..iframe(width='560', height='315', src='//www.youtube.com/embed/KpuDq9HyLeg', frameborder='0')
It's means have 1 more line above iframe
tag with the same space (tab) and inside parent tag of iframe
.
It's work for me. Hope this help!
Upvotes: 0
Reputation: 12265
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.
Upvotes: 1