-
-
07 Aug 2017 05:44:40 UTC
- Distribution: Mojolicious-Plugin-AssetPack-Che
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (299 / 3 / 0)
- Kwalitee
Bus factor: 1- 75.38% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (20.65KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE userand 1 contributors- ÐÐ¸Ñ Ð°Ð¸Ð» Че (Mikhail Che) <mche<-on->cpan.org>
- Dependencies
- CSS::Minifier::XS
- CSS::Sass
- HTML::Packer
- JavaScript::Minifier::XS
- Mojolicious::Plugin::AssetPack
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
NAME
Mojolicious::Plugin::AssetPack::Pipe::CombineFile - Store combined asset to cache file instead of memory.
SYNOPSIS
$app->plugin('AssetPack::Che' => { pipes => [qw(Sass Css JavaScript CombineFile)], CombineFile => {html=>{names=>"@@@ ", url_lines=>{'templates/bar.html'=>'t/bar',},},}, process => { 'tmpl1.html'=>['templates/foo.html', 'templates/bar.html',], ..., }, });
CONFIG
CombineFile determine config for this pipe module. Hashref has keys for format extensions and also:
url_lines - hashref maps url of asset to some line and place this line as first in content. If not defined thecontent will not change.
ROUTE
/assets/*topic will auto place.
Get combined asset by url
<scheme>//<host>/assets/tmpl1.html
SEE ALSO
Mojolicious::Plugin::AssetPack::Che
AUTHOR
Михаил Че (Mikhail Che),
<mche[-at-]cpan.org>
Module Install Instructions
To install Mojolicious::Plugin::AssetPack::Che, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious::Plugin::AssetPack::Che
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack::Che
For more information on module installation, please visit the detailed CPAN module installation guide.