Multiple Lines for Long Attribute Value in Jade / Pug

后端 未结 6 835
遥遥无期
遥遥无期 2020-12-28 12:07

How do we write a long attribute value over multiple lines in Jade / Pug?

SVG paths tend to be really long. We want to write an attribute value over multiple lines t

6条回答
  •  感情败类
    2020-12-28 12:56

    This is an old question but here is a newer answer.

    In my case I am using PUG in vue templates in single file components. So the following works for me.

    
    

    i.e. using string interpolation ` instead of ' or "

提交回复
热议问题