Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::AssetPack::Pipe::CombineFile - Store combined asset to cache file instead of memory.
$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',], ..., }, });
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.
/assets/*topic will auto place.
Get combined asset by url
<scheme>//<host>/assets/tmpl1.html
Mojolicious::Plugin::AssetPack::Che
Михаил Че (Mikhail Che), <mche[-at-]cpan.org>
<mche[-at-]cpan.org>
To install Mojolicious::Plugin::AssetPack::Che, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AssetPack::Che
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack::Che
For more information on module installation, please visit the detailed CPAN module installation guide.