1
0

ImportedComponent.pupper 619 B

12345678910111213141516171819
  1. import ExportedComponent(from="./ExportedComponent.pupper")
  2. import TestTaggedComponent(from="./TestTaggedComponent.pupper")
  3. template
  4. div
  5. div
  6. em|The following content must be imported from TestTaggedComponent.pupper:
  7. TestTaggedComponent(number=1, boolean=true, string="hello world", object={ a: 1 })
  8. hr.my-5
  9. div
  10. ="Also mounted into a slot:"
  11. slot(name="slot")
  12. implementation
  13. when#mounted
  14. console.log("Rendering", ExportedComponent, "into named slot \"slot\"", this.$slots.slot);
  15. ExportedComponent.mount(this.$slots.slot);