Yukki::Web::Settings - provides structure and validation to web settings in yukki.conf
version 0.121790
Yukki::Web needs a few additional settings.
THis is the folder where Yukki will find templates under the root. The default is root/template.
root
This is the folder where Yukki will find the static files to serve for your application.
This configures the "base_url" in Yukki::Web::Context attribute. It is either an absolute URL or the words SCRIPT_NAME or REWRITE. See "base_url" in Yukki::Web::Context for more information.
SCRIPT_NAME
REWRITE
The default is SCRIPT_NAME.
This is a list of the JavaScript and CSS files, respectively, to load into the shell template. If not set, the defaults are:
scripts: - script/lib/jquery/jquery.js - script/lib/jquery/jquery-ui.js - script/lib/jquery/jquery-fieldselection.js - script/lib/plupload/plupload.full.js - script/lib/sha1/sha1.js - script/yukki.js styles: - style/yukki.css - style/lib/jquery/jquery.css
As you can see, these are full paths and may be given as paths to foreign hosts. In order to keep Yukki working in good order, you will probaby want to include at least the scripts listed above.
In case your templates have custom menus on them, you may need to set this. The default is:
menu_names: - repository - user - page - page_bottom
This will insure that those menus are empty when they should be empty.
This is the list of page views to provide. By default, this is
page_views: default: label: View sort: 10 template: shell.html slides: label: Slides sort: 11 template: slides.html hide: 1 vars: "head link.local": - style/slides.css "head script.local": - script/slides.js
This is the list of plugins to use. This is an array of hashes. The hashes must have a module key naming the class defining the plugin. The rest of the keys will be passed to the plugin constructor.
module
This is a list of custom media types. Because media types are detected using LWP::MediaTypes, you may also configured media types by putting a .media.types file in the home directory of the user running Yukki.
By default, "text/yukki" is mapped to the "yukki" file extension.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2012 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Yukki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yukki
CPAN shell
perl -MCPAN -e shell install Yukki
For more information on module installation, please visit the detailed CPAN module installation guide.