logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

UR::Object::View::Default::Xsl - base class for views which use XSL on an XML view to generate content

Description

       This class implements basic HTML views of objects.  It has standard behavior for all text views.

Name

       UR::Object::View::Default::Xsl - base class for views which use XSL on an XML view to generate content

See Also

       UR::Object::View::Default::Text, UR::Object::View, UR::Object::View::Toolkit::XML,
       UR::Object::View::Toolkit::Text, UR::Object

perl v5.38.2                                       2024-06-15                UR::Object::View::Default::Xsl(3pm)

Synopsis

         #####

         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;

See Also