Syntax-K

Know-How für Ihr Projekt

Perl Documentation

NAME

development - AxKit2 development mode

SYNOPSIS

Plugin development

DESCRIPTION

If you load this plugin, AxKit2 will reload certain files on each request. Currently, only stylesheets are reloaded, which allows for easier testing of stylesheet code.

CONFIG

None.

CONSOLE

This plugin adds the command RESTART. When that command is issued, the current configuration will be checked for any fatal errors, and if none occur, the server is restarted. All connections are dropped instantly, and all files are closed, so this is not suitable for production servers.

API

If you write a module or code that caches data during the lifetime, you can provide a callback that deletes all cached state. Simply define a sub called RELOAD. This works for plugins and for perl modules that are in a sub-package below AxKit2::.