NAME
Mojolicious::Plugin::Iconify::API - Iconify API helpers.
SYNOPSIS
# Mojolicious
$self->plugin('Iconify::API', { collections => '/path-of/iconify-collections/json' });
# Mojolicious::Lite
plugin 'Iconify' => { collections => '/path-of/iconify-collections-json' };
DESCRIPTION
Mojolicious::Plugin::Iconify is a Mojolicious plugin to add Iconify support in your Mojolicious application.
HELPERS
Mojolicious::Plugin::Iconify implements the following helpers.
iconify_api_js
%= iconify_api_js
Generate script
tag for add Iconify API support in your web page.
iconify_api_collections
Return the list of Iconify icon collections.
iconify_api_collection
Return Iconify collection data.
iconify_api_collection_info
Return Iconify collection info.
iconify_svg_icon_url
Return SVG icon URL.
<img src="<%== iconify_svg_icon_url 'logos:perl' %>" width=16 height=16>
Note: You can use svg_icon_url
alias.
iconify_svg_icon
Return Mojo::DOM instance of SVG icon.
<%== iconify_svg_icon 'logos:perl' %>
Note: You can use svg_icon
alias.
METHODS
Mojolicious::Plugin::Iconify inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register(Mojolicious->new, { collections => '/path-of/iconify-collections/json' });
Register helpers in Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, https://mojolicious.org, https://iconify.design/docs/.
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-Mojolicious-Plugin-Iconify/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/giterlizzi/perl-Mojolicious-Plugin-Iconify
git clone https://github.com/giterlizzi/perl-Mojolicious-Plugin-Iconify.git
AUTHORS
Giuseppe Di Terlizzi <gdt@cpan.org>
COPYRIGHT AND LICENSE
Copyright (c) 2020-2021, Giuseppe Di Terlizzi
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.