https://github.com/mudler/mojolicious-plugin-materialize
Mojolicious + http://materializecss.com/
https://github.com/mudler/mojolicious-plugin-materialize
Last synced: 9 months ago
JSON representation
Mojolicious + http://materializecss.com/
- Host: GitHub
- URL: https://github.com/mudler/mojolicious-plugin-materialize
- Owner: mudler
- License: other
- Created: 2015-01-23T12:00:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-28T11:51:17.000Z (over 9 years ago)
- Last Synced: 2025-02-02T07:43:21.538Z (11 months ago)
- Language: JavaScript
- Size: 1.18 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Mojolicious::Plugin::Materialize - Mojolicious + http://materializecss.com/
# DESCRIPTION
[Mojolicious::Plugin::Materialize](https://metacpan.org/pod/Mojolicious::Plugin::Materialize) is used to include [http://materializecss.com/](http://materializecss.com/)
CSS and JavaScript files into your project.
This is done with the help of [Mojolicious::Plugin::AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack).
# SYNOPSIS
## Mojolicious
use Mojolicious::Lite;
plugin "Materialize";
get "/" => "index";
app->start;
## Template
% # ... your angular asset must be loaded before
%= asset "materialize.css"
%= asset "materialize.js"
Danger, danger! High Voltage!
TIP! You might want to load [Mojolicious::Plugin::AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack) yourself to specify
options.
# METHODS
## asset\_path
$path = Mojolicious::Plugin::Materialize->asset_path();
$path = $self->asset_path();
Returns the base path to the assets bundled with this module.
## register
$app->plugin("Materialize");
Loads the plugin and register the static paths that includes the css and js.
# CREDITS
[materialize](http://materializecss.com/) [contributors](https://github.com/Dogfalo/materialize/graphs/contributors)
# LICENSE
Copyright (C) mudler.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
# AUTHOR
mudler