Adding multiple attributes to elements using Jade
-
29-10-2019 - |
Question
In Jade, input(type='text' placeholder='Type in text')
yields a syntax error. What is the correct syntax?
Solution
You need a comma:
input(type='text', placeholder='Type in text')
https://github.com/visionmedia/jade/blob/master/examples/attributes.jade
Happy Coding!
OTHER TIPS
You can use a comma.
input(type='text', placeholder='Type in text')
Or new line.
input(type='text'
placeholder='Type in text')
See the documentation. https://github.com/visionmedia/jade#attributes
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow