UR::Ob...t::Xsl(3pm)
β¨ UR::Ob...t::Xsl π
okay so bestie, this is the manual page for UR::Ob...t::Xsl(3pm) β the Perl docs page (that's the 3pm part, iykyk) for a class whose full name is UR::Object::View::Default::Xsl. she's a base class π β the mom friend of view classes, the one that does the XSL thing on an XML view to make content pop out the other side. no cap. β¨
πΈ NAME πΈ
UR::Object::View::Default::Xsl β the base class for views which use XSL on an XML view to generate content. periodt. π
π¦ SYNOPSIS π¦
here's the whole vibe, verbatim, don't touch the code bestie:
#####
class Acme::Product::View::OrderStatus::Html {
is => 'UR::Object::View::Default::Xsl',
}
#####
Acme/Product/View/OrderStatus/Html.pm.xsl
#####
$o = Acme::Product->get(1234);
$v = $o->create_view(
perspective => 'order status',
toolkit => 'html',
aspects => [
'id',
'name',
'qty_on_hand',
'outstanding_orders' => [
'id',
'status',
'customer' => [
'id',
'name',
]
],
],
);
$xml1 = $v->content;
$o->qty_on_hand(200);
$xml2 = $v->content;
so real talk, that's the whole flow: you declare a view class with is => 'UR::Object::View::Default::Xsl', you drop a matching .pm.xsl file next to it, you grab an object with Acme::Product->get(1234), you spin up a view with create_view passing a perspective, a toolkit of 'html', and your aspects (yes, nested, look at those outstanding_orders and customer layers β she's got range π
), then you pull $v->content into $xml1, mutate the object with $o->qty_on_hand(200), and pull $v->content again into $xml2. two snapshots, one glow-up. π₯
π«Ά DESCRIPTION π«Ά
This class implements basic HTML views of objects. πβ¨
She's also got standard behavior for all text views β so if you've met one of her siblings, you already know the vibe check. standard behavior, all text views, no surprises. π
π SEE ALSO π
go say hi to the rest of the family, they're all iconic in their own way:
UR::Object::View::Default::TextUR::Object::ViewUR::Object::View::Toolkit::XMLUR::Object::View::Toolkit::TextUR::Object
and that's the page bestie!! π this little love letter was brought to you by perl v5.32.1 and it was last touched on 2022-01-17 β yeah she's been serving since then and she's still cute. mwah. πβ¨π¦
π¦ where this page comes from
- debian bookworm: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms