Bruno Postle > MKDoc-Core-0.91 > MKDoc::Core::Plugin::Resources

Download:
MKDoc-Core-0.91.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

MKDoc::Core::Plugin::Resources - Serves Resource Files.

SUMMARY ^

MKDoc::Core has a mechanism to provide resource files (such as style sheet, images, etc) which supports some inheritance mechanism.

When a request is made to /.resources/foo.png, it will try to serve:

$ENV{SITE_DIR}/resources/foo.png
$ENV{MKDOC_DIR}/resources/foo.png
@INC/MKDoc/resources/foo.png

Furthermore, if at any point it finds /resources/foo.png.deleted, it will decline the request, which usually results in a 404 page.

syntax highlighting: