in reply to Re^3: Mojolicious: rendering images located outside of public directory
in thread Mojolicious: rendering images located outside of public directory
The section Data. How do I address it from route defined above? It doesnt have name like gallery.html.ep or something...use Mojolicious::Lite; get '/render_static/:img' => sub { my $self = shift; my $img = $self->param('img'); my $path_to_private_images = ...( $img ); return $self->render_static( $path_to_private_images ); } __DATA__ .. <img src="<%= url_for( '/render_static/yo.png' ) -%>">
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Mojolicious: rendering images located outside of public directory
by Anonymous Monk on Jun 19, 2014 at 08:41 UTC |