++ed by:

1 non-PAUSE user(s).

Andrew Sterling Hanenkamp

NAME

Yukki::Web::Settings - provides structure and validation to web settings in yukki.conf

VERSION

version 0.140290

DESCRIPTION

Yukki::Web needs a few additional settings.

ATTRIBUTES

template_path

THis is the folder where Yukki will find templates under the root. The default is root/template.

static_path

This is the folder where Yukki will find the static files to serve for your application.

base_url

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.

The default is SCRIPT_NAME.

scripts

styles

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.

page_views

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

plugins

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.

media_types

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.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 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.




Hosting generously
sponsored by Bytemark