NAME
Mojolicious::Plugin::Foil - Mojolicious Plugin for CSS theming
VERSION
version 0.006
SYNOPSIS
use Mojolicious::Plugin::Foil;
DESCRIPTION
Pretty themes; putting them in the application instead of in javascript; it's faster this way. Also other looks like breadcrumbs and other header stuff.
NAME
Mojolicious::Plugin::Foil - looks for app
VERSION
version 0.006
REGISTER
Helper Functions
These are functions which are NOT exported by this plugin.
_get_themes
Get the list of themes from the themes.json file.
_setup_concon
Set up the Config::Context stuff.
_get_prefix
Get the "prefix" part of the current route, if it has one
_make_theme_selector
For selecting themes.
_make_navbar
Top-level navigation. The difficulty with this is that using a reverse-proxy means that all relative-ish URLs will be rewritten to be relative to this app. So we need to take account of the host the request is coming from. Absolute full URLs shouldn't be re-written.
_make_breadcrumb
Make breadcrumb showing the current page.
_make_referrer
Make link showing the previous page.
_make_logo_css
Make logo-link which points to the Home page.
_get_theme_id
Get the ID of the current theme.
_set_theme
For remembering themes.
_get_foilconf
Get the appropriate config for this rhost.
AUTHOR
Kathryn Andersen <perlkat@katspace.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Kathryn Andersen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.