Доброго всем
¡ ¡ ¡ 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>