The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Modwheel::Template::ObjectProxy - Access to Modwheel data objects from templates.

SYNOPSIS

   [% get_id   = modwheel.getParam(id)          %]
   [% new_name = modwheel.getParam(new_name)    %]
   [% object   = modwheel.fetch( id => get_id ) %] 

   [% IF new_name %]
     [% object.setObjectValues( name => new_name ) %]
     [% ret = modwheel.saveObject( object )        %]
   [% END %]
   
   <strong>Name:</strong> [% object.name %]

    [% IF ret %]
      New name set to [% new_name %]
    [% END %]

DESCRIPTION

Access Modwheel data objects from templates. See Modwheel::Object for more information on the attributes available.

SUBROUTINES/METHODS

TEMPLATE METHODS

object.setObjectValues(\%values)

Set object values.

API METHODS

->new( )

ATTRIBUTES

Same attributes as Modwheel::Object.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

Sub::Install
version

INCOMPATIBILITIES

None known.

BUGS AND LIMITATIONS

None known.

SEE ALSO

VERSION

v0.2.2

AUTHOR

Ask Solem, ask@0x61736b.net.

LICENSE AND COPYRIGHT

Copyright (C) 2007 by Ask Solem ask@0x61736b.net.

All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.