module Roda::RodaPlugins::RecheckPrecompiledAssets

The recheck_precompiled_assets plugin enables checking for the precompiled asset metadata file. You need to have already loaded the assets plugin with the :precompiled option and the file specified by the :precompiled option must already exist in order to use the recheck_precompiled_assets plugin.

Any time you want to check whether the precompiled asset metadata file has changed and should be reloaded, you can call the recheck_precompiled_assets class method. This method will check whether the file has changed, and reload it if it has. If you want to check for modifications on every request, you can use self.class.recheck_precompiled_assets inside your route block.