http://www.perlmonks.org?node_id=1031188


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....