Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The plugin for Dancer is not very fair as it doesn't handle patterned routes.
Mojolicious also provides a list of routes (see cpansearch.perl.org/src/SRI/Mojolicious-4.16/lib/Mojolicious/Command/routes.pm ) and writes a similar plugin.
But it is better to write a "private" generator that takes into account all the pages of the site.
Or a separate controller (bad option with a lot of content).
Or as a custom command Mojolicious::Command::* and run by cron to generate a static file.
Or as a hook that will work on adding content and generate a static file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question