1Mojo::Server::Morbo::BaUcskeerndC:o:nPtorlilb(u3t)ed PerMlojDoo:c:uSmeernvteart:i:oMnorbo::Backend::Poll(3)
2
3
4
6 Mojo::Server::Morbo::Backend::Poll - Morbo default backend
7
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
17 Mojo::Server::Morbo::Backend:Poll is the default backend for
18 Mojo::Server::Morbo.
19
21 Mojo::Server::Morbo::Backend::Poll inherits all attributes from
22 Mojo::Server::Morbo::Backend.
23
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
38 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
39
40
41
42perl v5.32.1 2021-02-M0o7jo::Server::Morbo::Backend::Poll(3)