Bundle MaterialDesign for angular in your mojolicious app
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Mojolicious/Plugin/Angular
t
.gitignore
.travis.yml
Changes
LICENSE
META.json
Makefile.PL
README.md
cpanfile
minil.toml

README.md

Build Status

NAME

Mojolicious::Plugin::Angular::MaterialDesign - Mojolicious + https://material.angularjs.org/

DESCRIPTION

Mojolicious::Plugin::Angular::MaterialDesign is used to include https://material.angularjs.org/ CSS and JavaScript files into your project.

This is done with the help of Mojolicious::Plugin::AssetPack.

SYNOPSIS

Mojolicious

use Mojolicious::Lite;
plugin "Angular::MaterialDesign";
get "/" => "index";
app->start;

Template

<!doctype html>
<html>
  <head>
    % # ... your angular asset must be loaded before
    %= asset "materialdesign.css"
    %= asset "materialdesign.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.

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 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 mudler@dark-lab.net