You do not need to use single quote for attributes, just use html doctype will get that fixed in…
Wayne Cheah

Hey, thanks for your suggestion! I give it a try just now, unfortunately it doesn’t work. 
It behave same like what I mention in the article.

It will not fail, pug get compile to HTML, but it omit those attribute with no single quote.


this pug

div([id]="myId") testing

will be compiled to


Only when single quote it

div('[id]'="myId") testing

it compiled correctly to

<div id="myId">testing</div>
Like what you read? Give Jecelyn Yeen a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.