Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding multiple attributes to elements using Jade

Tags:

pug

In Jade, input(type='text' placeholder='Type in text') yields a syntax error. What is the correct syntax?

like image 536
Randomblue Avatar asked Dec 06 '11 20:12

Randomblue


Video Answer


1 Answers

You need a comma:

input(type='text', placeholder='Type in text')

https://github.com/visionmedia/jade/blob/master/examples/attributes.jade

Happy Coding!

like image 147
Justin Beckwith Avatar answered Dec 02 '22 04:12

Justin Beckwith