PDF::F...::Scope(3pm)

πŸ“¦
version 0.34 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

PDF::FromHTML::Template::Container::Scope β€” bestie, it's literally just here to give your children some scope ✨


πŸ¦‹ NODE NAME πŸ¦‹

SCOPE

Like, that's the name you drop in your XML when you want one of these. Periodt.


πŸ‘‘ INHERITANCE πŸ‘‘

PDF::FromHTML::Template::Container

It's giving nepo baby β€” it inherits from the Container class, as it should. πŸ’…


🌸 ATTRIBUTES 🌸

None. Not a single one. Zero. Zilch. She's serving pure structure and honestly? Iconic.


πŸŽ€ CHILDREN πŸŽ€

None. Again β€” nothing declared here. Ngl, this node is lowkey a vibe-only situation.


⭐ AFFECTS ⭐

Nothing.</purpose>


🧚 DEPENDENCIES 🧚

None. She's independent, she's self-sufficient, she doesn't need anybody. Main character energy fr fr.


✨ USAGE ✨

Okay so here's the whole point of this thing. Watch:

<scope w="100%">
  <row h="18">
    <textbox text="Hello, world"/>
  </row>
  <row h="8">
    <textbox text="Goodbye, world"/>
  </row>
</scope>

So like β€” if you've got a bunch of nodes that all share common attribute values, but they don't have a common parent, you just give them a no-op parent. That parent does nothing except let you consolidate all your attribute specification in one place. It's the friend who holds everyone's coats at the party 🫢

In the example above, the two textbox nodes will inherit the W attribute from the scope tag. No cap β€” that's the whole trick. πŸ’–


πŸ’œ AUTHOR πŸ’œ

Rob Kinyon (rkinyon@columbus.rr.com) β€” ty king, we appreciate you πŸ™


🌈 SEE ALSO 🌈

(nothing else listed, bestie β€” she stands alone)


Perl v5.38.2, dated 2024-07-28, and this lil page lives under PDF::F...::Scope(3pm) in the User Contributed Perl Documentation. Mwah, slay, bye bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from