Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/lib.pm
This plugin can inject custom paths into the @INC
array so that Perl can find your custom parser or callback plugin in a provided directory. This allows one to keep extra plugins next to your Serge project, and not installed as global Perl modules.
For this plugin to work properly, it must go as a first one in the callback_plugins { ... }
section of your configuration file.
Based on the suggested directory structure of your Serge server, it is recommended to put your custom modules under /var/serge/data/lib
folder, for example:
/var
/serge
/data
/configs
example-project.serge (see below)
/db
/lib
my_parser.pm
my_callback_plugin.pm
/ts
/vcs
Then the /var/serge/data/configs/example-project.serge
will look like this: