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

Re^3: Serving static files with Plack

by Anonymous Monk
on Apr 20, 2016 at 23:06 UTC ( [id://1161040]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Serving static files with Plack
in thread Serving static files with Plack

Try  path => sub { s{^/static/}{}; }, root => 'html-files';

When you only add root, its looking in root/static,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found