1Mojo::Server::Morbo::BaUcskeerndC:o:nPtorlilb(u3t)ed PerMlojDoo:c:uSmeernvteart:i:oMnorbo::Backend::Poll(3)
2
3
4

NAME

6       Mojo::Server::Morbo::Backend::Poll - Morbo default backend
7

SYNOPSIS

9         use Mojo::Server::Morbo::Backend::Poll;
10
11         my $backend = Mojo::Server::Morbo::Backend::Poll->new;
12         if (my $files = $backend->modified_files) {
13           ...
14         }
15

DESCRIPTION

17       Mojo::Server::Morbo::Backend:Poll is the default backend for
18       Mojo::Server::Morbo.
19

ATTRIBUTES

21       Mojo::Server::Morbo::Backend::Poll inherits all attributes from
22       Mojo::Server::Morbo::Backend.
23

METHODS

25       Mojo::Server::Morbo::Backend::Poll inherits all methods from
26       Mojo::Server::Morbo::Backend and implements the following new ones.
27
28   modified_files
29         my $files = $backend->modified_files;
30
31       Check file size and mtime to determine which files have changed, this
32       is not particularly efficient, but very portable.
33
34         # All files that have been modified
35         say for @{$backend->modified_files};
36

SEE ALSO

38       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
39
40
41
42perl v5.32.0                      2020-07-M2o8jo::Server::Morbo::Backend::Poll(3)
Impressum