Excel:...::Scope(3pm)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.34 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Excel::Template::Container::Scope(3pm) πŸ’–

okay bestie, welcome to the manual page for Excel::Template::Container::Scope β€” a User Contributed Perl Documentation page, no cap. Let's get into it 🫢


✨ NAME ✨

Excel::Template::Container::Scope β€” literally just Excel::Template::Container::Scope. she's an icon, she's a mystery, she contains multitudes πŸ’…


🎯 PURPOSE 🎯

to provide scoping of parameters for her children. that's it. that's the whole vibe. she's the mom friend who hands out the same info to everyone in the group chat πŸ“±βœ¨


🏷️ NODE NAME 🏷️

SCOPE

that's what you call her in your template, bestie. remember it πŸ‘‘


🧬 INHERITANCE 🧬

Excel::Template::Container

so she's got that container bloodline. generational excellence fr fr 🌸


πŸ“‹ ATTRIBUTES πŸ“‹

None


πŸ‘Ά CHILDREN πŸ‘Ά

None


🌈 EFFECTS 🌈

None


πŸ”— DEPENDENCIES πŸ”—

None


πŸ› οΈ USAGE πŸ› οΈ

here's the whole thing, and honestly? it's giving minimal effort, maximum payoff:

  <scope param1="value1" param2="value2">
    ... Children here ...
  </scope>

so in the example above, every single one of the children gets access to the parameters param1 and param2. like, all of them. no favorites πŸ₯°

this is useful when you've got a section of your template where everything shares the same set of parameter values, but β€” plot twist β€” they don't have a common parent 😭. so instead of copy-pasting params all over the place like a menace, you just wrap the whole squad in a scope and let them all eat πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Rob Kinyon (rob.kinyon@gmail.com)


πŸ‘€ SEE ALSO πŸ‘€

perl β€” yes, that's the only one. she's independent, she doesn't need a whole friend group πŸ’œ


okay and that's the page!! thanks for reading bestie, mwah 😘

this whole thing was written for perl v5.34.0, dated 2022-06-13 β€” and yes, the header and footer said Excel:...::Scope(3pm) but that's just the manual name being cute and mysterious. periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from