The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::SemanticUI - Semantic UI for your application

SYNOPSIS

  # 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>

DESCRIPTION

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.

METHODS

Mojolicious::Plugin::SemanticUI inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

HELPERS

(TODO) Mojolicious::Plugin::SemanticUI exports the following helpers for use in controllers and templates. The helpers are provided in the SemanticUI namespace.

  % my $sui = $c->SemanticUI;
  %= $sui->segment begin
    Ала-бала-ница, турска паница,
    Хей гиди Ванчо,
    наш капитанчо...
  %=end

segment

TODO ...

SEE ALSO

Mojolicious, Mojolicious::Guides, Ado, http://beta.semantic-ui.com/, http://mojolicio.us.

AUTHOR

Красимир Беров (Krasimir Berov)

COPYRIGHT AND LICENSE

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.