mixin.merge.pug 329 B

123456789101112131415
  1. mixin foo
  2. p.bar&attributes(attributes) One
  3. p.baz.quux&attributes(attributes) Two
  4. p&attributes(attributes) Three
  5. p.bar&attributes(attributes)(class="baz") Four
  6. body
  7. +foo.hello
  8. +foo#world
  9. +foo.hello#world
  10. +foo.hello.world
  11. +foo(class="hello")
  12. +foo.hello(class="world")
  13. +foo
  14. +foo&attributes({class: "hello"})