Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Catalyst Help once again (MANIFEST)

by Anonymous Monk
on Apr 29, 2013 at 09:02 UTC ( #1031188=note: print w/ replies, xml ) Need Help??


in reply to Catalyst Help once again

I tried using Catalyst::Plugin::Static::Simple but I can't seem to figure it out. :/ :(.

What did you try?

Will any monk be kind enough to present me a step-by-step crash course on how to use C::P::S::S? Or a better question is, since I learn faster by examples, can any monk point me to a complete example that uses C::P::S::S? I did google about it, but it still is unclear.

:) All the best code has examples ready to run in MANIFEST, speaking of "best code", "better best" code even has them in examples directory with short/meaningful/clear to understand variable/subnames, and "super best" code even has complete example in SYNOPSIS

So, it seem you should use

MyApp->config( static => { ## include_path => [ ## MyApp->config->{root}.'/static', ## ], ## or dirs => [ ## qr{^static}, 'static', ], }, );

Then you save your files in MyApp->config->{root}.'/static/temp/fileXXX.jpg'

and you generate links /yourapp/static/temp/fileXXX.jpg so C'P'S'S will search MyApp->config->{root}.'/static/ for temp/fileXXX.jpg

All that is left to turn on debug , test it, and tweak ignore*/mime....


Comment on Re: Catalyst Help once again (MANIFEST)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-11-21 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (103 votes), past polls