The lib/
folder
Genie makes it very easy to automatically load your existing Julia code (modules, files, etc) into the app, outside of the standard Genie MVC structure. You simply need to add your files and folders into the lib/
folder.
HEADS UP
- If the
lib/
folder does not exist, just create it yourself:julia> mkdir("lib")
- Genie does not
include
the files placed within thelib/
folder, but recursively adds all the folders to theLOAD_PATH
- so you caninclude
the files yourself, as needed – Genie/Julia will know were to find them in the LOAD_PATH. - Files within
lib/
are not added to theRevise
queue so they are not automatically reloaded by Genie if changed. If you make changes/add/remove files inlib/
you need to restart the app or manually add them to be watched and reloaded byRevise
. The reason being that thelib/
folder is meant for legacy code. If you will actively develop the code, the recommended way is to use Genie's MVC structure, adding Models, Controllers, and Views as needed.