UR::Ob...::Html(3pm)

πŸ“¦
version 0.470 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– UR::Object::View::Static::Html β€” the vibe check πŸ’–

ok so bestie, this is a page from the User Contributed Perl Documentation (yes, that's the manual it lives in), and it's all about UR::Object::View::Static::Html β€” the class that shows you object state, but make it HTML. πŸŽ€


✨ NAME ✨

UR::Object::View::Static::Html β€” represent object state in HTML format 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

ok here's the whole entire vibe, copy-paste ready, no notes:

package Genome::Sample::Set::View::Detail::Html;

class Genome::Sample::Set::View::Detail::Html {
    is => 'UR::Object::View::Static::Html',
    has_constant => [
        toolkit     => { value => 'html' },
        perspective => { value => 'detail' }
    ] };

see how it's just... vibing? subclass it, set toolkit to 'html', set perspective to 'detail', and boom, you're the main character. ✨


πŸ’… DESCRIPTION πŸ’…

ok so real talk, here's the tea πŸ“:

the current default HTML class creates HTML by getting XML and applying XSL. (the way that it's out here doing a whole pipeline just to hand you some markup, honestly iconic.)

this class, on the other hand, displays some static html. that's it. that's the whole thing. no XML, no XSL, just static html, sitting there, unbothered, moisturized, in its lane. πŸ’…

so like β€” if you want the ✨transformation pipeline✨, go with the default. if you want the chill static version, you're already in the right place. lowkey a whole different energy. 🫢


🌈 SEE ALSO 🌈

go read these too, they're all connected, iykyk πŸ‘‘

  • UR::Object::View::Default::Html
  • UR::Object::View::Default::Text
  • UR::Object::View
  • UR::Object::View::Toolkit::XML
  • UR::Object::View::Toolkit::Text
  • UR::Object

πŸ’€ reminder bestie: this whole page is documenting perl v5.32.1, dated 2022-01-17, under the User Contributed Perl Documentation. if your perl is a different era, maybe double check, no cap.

and that's the page!! tysm for reading, you ate that fr fr πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ go write some static html, you got this 🫢

πŸ“¦ where this page comes from