5 Produces a list of <script src=""></script> lines for a set of
6 legacy JavaScript modules or legacy JSAN class names, including any necessary dependencies.
10 =head2 C<entries> - single class name, or arrayref of JavaScript entry modules to import
14 <& /import_javascript, entries => [], legacy => [] &>
25 $legacy = [ $legacy ] unless ref $legacy;
26 $classes = [ $classes ] unless ref $classes; #< coerce to arrayref
27 push @$legacy, @$classes;
28 push @{ $c->stash->{jsan_classes} }, @$legacy;
30 $entries = [ $entries ] unless ref $entries; #< coerce to arrayref
31 push @{ $c->stash->{js_modules} }, @$entries;