5

Is there a way to do this in jade? I've tried doing it several different ways but with no luck. I also couldn't find anything similar to this.

I tried

.animated.{{class}}

but it compiled to

<div class="animated">.{{class}}

instead of (desired)

<div class="animated {{class}}">
Community
  • 1
  • 1
Rapnar
  • 137
  • 11

1 Answers1

10

This should do for you:

.animated(class='{{class}}')
plus-
  • 45,453
  • 15
  • 60
  • 73