perl-Dancer2-Plugin-JSManager - Manage website javascript files with the Dancer2 configuration file

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Dancer2-Plugin-JSManager-0.013-alt1.noarch.rpm
Package name perl-Dancer2-Plugin-JSManager
Package version 0.013
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 26.48 KB
Installed size 26.48 KB
In the Dancer2 configuration file, make an entry for each javascript file you are using on the site
in the order you'd like them to appear in the web page like so:
; 'autoload' defaults to 1 if not supplied. Setting to 0 turns off all javascript.
autoload: 1
; create a variable called 'libraries'
; A name you give to the library, must be preceded by a dash
- jquery:
; The URL where the js file is hosted on the CDN
uri: ''
;Path to local js file in case CDN is unavailable
fallback: '/js/jquery-1.11.1.min.js'
; This library depends on the previous library so we put it second
- jqm:
uri: ''
fallback: '/js/'
- growler:
; if a file is not on a CDN simply put the path to the local file
uri: '/js/jquery.growl.min.js'
; control where in the template the javascript will appear (see below for more explanation)
injection_pt: 'body_top'
After modifying your config file, all you have to do is put a variable called `js_head'
in the head portion of your tempalte. So, for example, if you are using the Template::Toolkit manpage,
you would add the following into the `<head\'> section of your HTML template:
[% js_head %]
If you want to inject the javascript into different parts of your page, you can do that with a
custom variable determined by the "injection_pt" property, preceded by `js_'.
So, from the example above, the growler script has the ...


Package Version Architecture Repository
perl-Dancer2-Plugin-JSManager - - -


Name Value
/usr/share/perl5 -
perl(Dancer2/ -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -


Name Value
perl(Dancer2/Plugin/ = 0.013
perl-Dancer2-Plugin-JSManager = 0.013-alt1


Type URL
Binary Package perl-Dancer2-Plugin-JSManager-0.013-alt1.noarch.rpm
Source Package perl-Dancer2-Plugin-JSManager-0.013-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Dancer2-Plugin-JSManager rpm package:
    # sudo apt-get install perl-Dancer2-Plugin-JSManager



See Also

Package Description
perl-Dancer2-Plugin-JWT-0.017-alt1.noarch.rpm JSON Web Token made simple for Dancer2
perl-Dancer2-Plugin-Locale-0.04-alt1.noarch.rpm Localize your Dancer2 application
perl-Dancer2-Plugin-Locale-Meta-0.006-alt1.noarch.rpm Interface to support multilanguage using Locale::Meta package
perl-Dancer2-Plugin-Locale-Wolowitz-0.05-alt1.noarch.rpm Dancer2's plugin for Locale::Wolowitz
perl-Dancer2-Plugin-LogContextual-1.152121-alt1.noarch.rpm wrap a Dancer2 plack app in the configured Log::Contextual logger
perl-Dancer2-Plugin-Map-Tube-0.02-alt1.noarch.rpm Dancer2 add-on for Map::Tube
perl-Dancer2-Plugin-MarkdownFilesToHTML-0.017-alt1.noarch.rpm Easy conversion of markdown documents to HTML for display in your Dancer2 website
perl-Dancer2-Plugin-Menu-0.009-alt1.noarch.rpm Automatically generate an HTML menu for your Dancer2 app
perl-Dancer2-Plugin-Minify-0.002-alt1.noarch.rpm Minify HTML, JavaScript and CSS
perl-Dancer2-Plugin-Model-1.152120-alt1.noarch.rpm gantry to hang a model layer onto Dancer2
perl-Dancer2-Plugin-Multilang-1.2.0-alt1.noarch.rpm Dancer2 Plugin to create multilanguage sites
perl-Dancer2-Plugin-Negotiate-0.002-alt1.noarch.rpm Content negotiation plugin for Dancer2
perl-Dancer2-Plugin-OAuth2-Server-0.10-alt1.noarch.rpm Easier implementation of an OAuth2 Authorization Server / Resource Server with Dancer2 Port of Mojo
perl-Dancer2-Plugin-OpenAPIRoutes-0.03-alt1.noarch.rpm automatic routes creation
perl-Dancer2-Plugin-PageHistory-0.210-alt1.noarch.rpm Collect interesting pages a user has visited in the session