Program_Sauce Program_Sauce - 1 month ago 13
Jade Question

how to convert the following html into jade

The following is the code i want to convert to jade from html.

<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>


Thanks

Answer

You can test it here: http://jade-lang.com/demo/

video(width="320", height="240", controls)
  source(src="movie.mp4", type="video/mp4")
  source(src="movie.ogg", type="video/ogg")
  |Your browser does not support the video tag.
Comments