Revision 4d9d7d51
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/ClientJS.pm | ||
---|---|---|
return $self->_actions;
|
||
}
|
||
|
||
sub render {
|
||
my ($self, $controller) = @_;
|
||
return $controller->render(\$self->to_json, { type => 'json' });
|
||
}
|
||
|
||
1;
|
||
__END__
|
||
|
||
... | ... | |
Returns the actions gathered so far as a JSON string ready to be sent
|
||
to the client.
|
||
|
||
=item C<render $controller>
|
||
|
||
Renders C<$self> via the controller. Useful for chaining. Equivalent
|
||
to the following:
|
||
|
||
$controller->render(\$self->to_json, { type => 'json' });
|
||
|
||
=back
|
||
|
||
=head1 FUNCTIONS EVALUATED ON THE CLIENT SIDE
|
Auch abrufbar als: Unified diff
ClientJS: render()-Funktion zum noch besseren Chaining