mugifly/p5-Mojolicious-Plugin-StaticCompressor — pull request #5 by jakir-hayder (2013-08-01 08:36:44+00:00)
Title: generate_list added so that we can pass array to js, js_nominify, css, css_nominify

In this way we can pass array. Suppose we want to pass js file from controller because we want to load different js in different action

$self->stash(footer_scripts => ['/js/upload.js','/js/download.js']);

In template
[% final_footer_scripts = ['/js/core.js']%]
[% IF footer_scripts %]
[% final_footer_scripts = final_footer_scripts.merge(footer_scripts)%]
[%END %]
[%h.js(final_footer_scripts) %]