https://github.com/mudler/mojolicious-plugin-angular-materialdesign
Bundle MaterialDesign for angular in your mojolicious app
https://github.com/mudler/mojolicious-plugin-angular-materialdesign
Last synced: 2 months ago
JSON representation
Bundle MaterialDesign for angular in your mojolicious app
- Host: GitHub
- URL: https://github.com/mudler/mojolicious-plugin-angular-materialdesign
- Owner: mudler
- License: other
- Created: 2014-12-27T11:29:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T08:16:04.000Z (over 7 years ago)
- Last Synced: 2025-02-02T07:43:14.274Z (4 months ago)
- Language: Perl
- Size: 177 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mudler/Mojolicious-Plugin-Angular-MaterialDesign)
# NAMEMojolicious::Plugin::Angular::MaterialDesign - Mojolicious + https://material.angularjs.org/
# DESCRIPTION
[Mojolicious::Plugin::Angular::MaterialDesign](https://metacpan.org/pod/Mojolicious::Plugin::Angular::MaterialDesign) is used to include [https://material.angularjs.org/](https://material.angularjs.org/)
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 "Angular::MaterialDesign";
get "/" => "index";
app->start;## Template
% # ... your angular asset must be loaded before
%= asset "materialdesign.css"
%= asset "materialdesign.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::Angular::MaterialDesign->asset_path();
$path = $self->asset_path();Returns the base path to the assets bundled with this module.
## register
$app->plugin("Angular::MaterialDesign");
Loads the plugin and register the static paths that includes the css and js.
# CREDITS
[angular/material](https://github.com/angular/material) [contributors](https://github.com/angular/material/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