Mojolicious::Plugin::SemanticUI - Semantic UI for your application
# Mojolicious $self->plugin('SemanticUI'); # Mojolicious::Lite plugin 'SemanticUI'; #in your layout (or template) <head> <!-- ... --> %= stylesheet begin @import url('/vendor/SemanticUI/definitions/elements/button.min.css'); @import url('/vendor/SemanticUI/definitions/elements/divider.min.css'); %=end %= javascript '/vendor/SemanticUI/definitions/javascript/semantic.min.js' <!-- ... --> </head>
Mojolicious::Plugin::SemanticUI includes the minifed build of the Semantic UI CSS and Javascript library. Note that the beta 1.0 version is included - http://beta.semantic-ui.com/. It also provides helpers (TODO) for using Semantic UI modules in your templates. This way you do not need to download Semantic UI separately. This is ALPHA release - not ready for production.
Mojolicious::Plugin::SemanticUI inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
(TODO) Mojolicious::Plugin::SemanticUI exports the following helpers for use in controllers and templates. The helpers are provided in the SemanticUI namespace.
SemanticUI
% my $sui = $c->SemanticUI; %= $sui->segment begin Ала-бала-ница, турска паница, Хей гиди Ванчо, наш капитанчо... %=end
TODO ...
Mojolicious, Mojolicious::Guides, Ado, http://beta.semantic-ui.com/, http://mojolicio.us.
Красимир Беров (Krasimir Berov)
Copyright 2014 Красимир Беров (Krasimir Berov).
This program is free software, you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License v3 (LGPL-3.0). You may copy, distribute and modify the software provided that modifications are open source. However, software that includes the license may release under a different license.
See http://opensource.org/licenses/lgpl-3.0.html for more information.
To install Mojolicious::Plugin::SemanticUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SemanticUI
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SemanticUI
For more information on module installation, please visit the detailed CPAN module installation guide.