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
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.
.day(:class=`{
'disabled': isDisabled,
'selected': isSameDay,
'in-range': isInRange,
'today': isToday,
'weekend': isWeekend,
'outside-month': isOutsideMonth }`,
@click='selectDay'
) {{label}}
i.e. using string interpolation ` instead of ' or "