Presents various tools for development.
Do not enable this module on production systems, as it severely impacts performance.
After the development module is enabled a menu item Development is added to the System menu in the admin.
On the development page it is possible to set debugging options, trace template compilation, and test dispatch rules.
This can toggle various development options:
The template selection mechanism is quite complicated. It takes into account all modules, their priority, the user-agent class (desktop, tablet, phone or text) and optionally the category of a resource.
With this debugging tool you can optionally select a category, and fill in the name of the template. Per user-agent class the selected template will be shown.
The second debug option is a page with a live display of all templates being compiled. With this it is possible to get greater insight in the template selection and compilation.
With this it is possible to see for a request path which dispatch rules are matched and/or how it is rewritten.
When this module is enabled, it runs a watcher program in the background, which watches files in Zotonic and its site for changes. If it detects changes, it performs certain actions. See below for platform-specific installation instructions.
On Linux this feature depends on the inotifywait tool, which is part of the inotify-tools package. For displaying notifications, it uses notify-send:
sudo apt-get install inotify-tools libnotify-bin
On MacOS X (version 10.8 and higher), we use the external programs fswatch and terminal-notifier:
sudo brew install fswatch sudo brew install terminal-notifier