Mojolicious::Plugin::Materialize - Mojolicious + http://materializecss.com/
Mojolicious::Plugin::Materialize is used to include http://materializecss.com/ CSS and JavaScript files into your project.
This is done with the help of Mojolicious::Plugin::AssetPack.
use Mojolicious::Lite; plugin "Materialize"; get "/" => "index"; app->start;
<!doctype html> <html> <head> % # ... your angular asset must be loaded before %= asset "materialize.css" %= asset "materialize.js" </head> <body> <p class="alert alert-danger">Danger, danger! High Voltage!</p> </body> </html>
TIP! You might want to load Mojolicious::Plugin::AssetPack yourself to specify options.
$path = Mojolicious::Plugin::Materialize->asset_path(); $path = $self->asset_path();
Returns the base path to the assets bundled with this module.
$app->plugin("Materialize");
Loads the plugin and register the static paths that includes the css and js.
materialize contributors
Copyright (C) mudler.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
mudler <mudler@dark-lab.net>
To install Mojolicious::Plugin::Materialize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Materialize
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Materialize
For more information on module installation, please visit the detailed CPAN module installation guide.