Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Bad practice or duct-tape hack?

by xyzzy (Pilgrim)
on Aug 13, 2012 at 17:45 UTC ( [id://987171]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [% FOREACH file IN css %]<link rel="stylesheet" href='[%c.uri_for("/ro
    +ot/static/css/$file.css")%]' />[%END%]
    [% FOREACH file IN js %]<script src='[%c.uri_for("/root/static/js/$fil
    +e.js")%]'></script>[%END%]
    
  2. or download this
    sub register :Local {
      ...
      push @{$c->stash->{js}}, qw/
    ...
        forms
      |;
    }
    
  3. or download this
    sub include :Private {
        my ($self, $c, @include) = @_
    ...
            push @{$c->stash->{js}}, $_ foreach (@{$links{js}});
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://987171]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found