And could you please help me to write a route for such a situation? Let's
say full versions of pics are stored in /images/big/foldername/file.jpg.
I'm writing something like this:
get 'qr!/images/big/.*/(.*\.jpg)!i' => sub {
    my $self = shift;
    $self->stash(pic => $1); #it's a value passed through stash for <img
src="<%=$pic%>"> tag.
    $self->render('gallery_big');
};
but it doesn't seem to work: pictures are still given back as static files.
Sorry for dumb questions, but I'm totally new frameworking.


2014-06-15 16:23 GMT+04:00 Daniel Vinciguerra <[email protected]>:

> You can use a route to render image instead of use the real image file
> path, for example.
>
> At route you can check user authentication and open static file... if user
> is not authenticated you can show another image regarding unauthenticated
> user status.
>
>
> Its can help you, I guess..
>
> best,
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mojolicious" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mojolicious/oOH_w54TLf4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to