MKDoc::Core::Init - MKDoc Initialization Framework


The MKDoc Initialization is done much like the way the plugins are processed, except that the initialization modules cannot interrupt the initialization chain unless they choose to die(), which triggers a 500 Internal Server Error.

Initialization modules which are registered in $ENV{SITE_DIR}/init are executed on each request within MKDoc::Init.

Under mod_perl, MKDoc::Core::Init runs as a PerlInitHandler.

Under mod_cgi, MKDoc::Core::Init runs before any plugin is invoked.

See MKDoc::Core::Init::Petal for an example of initialization module.


Sets all the variables, database connections, etc. before the query is executed.


Resets all the variables which look like $::MKD_<something> to undef.


Copyright 2003 - MKDoc Holdings Ltd.

Author: Jean-Michel Hiver

This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.


  L<Petal> TAL for perl

Help us open-source MKDoc. Join the mkdoc-modules mailing list: