Mojolicious::Plugin::Foil - Mojolicious Plugin for CSS theming
version 0.006
use Mojolicious::Plugin::Foil;
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.
Mojolicious::Plugin::Foil - looks for app
These are functions which are NOT exported by this plugin.
Get the list of themes from the themes.json file.
Set up the Config::Context stuff.
Get the "prefix" part of the current route, if it has one
For selecting themes.
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 showing the current page.
Make link showing the previous page.
Make logo-link which points to the Home page.
Get the ID of the current theme.
For remembering themes.
Get the appropriate config for this rhost.
Kathryn Andersen <perlkat@katspace.org>
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.
To install Mojolicious::Plugin::Foil, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Foil
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Foil
For more information on module installation, please visit the detailed CPAN module installation guide.