On Sun, Feb 15, 2015 at 5:46 PM, sri <[email protected]> wrote:
> And I guess the reason why is that there is no route for public files.
>>
>
> Maybe this makes it more clear.
>
>
> https://github.com/kraih/mojo/commit/650af5ce78ff054d2c1781c4e4ce54891ab20a2e
>
It does -- thank you! And this shows that I have been doing it -- I think
-- exactly correctly. Maybe this will help show what I'm experiencing:
*$ cat templates/example/welcome.html.ep*
% layout 'default';
% title 'Welcome';
<h2><%= $msg %></h2>
This page was generated from the template
"templates/example/welcome.html.ep"
and the layout "templates/layouts/default.html.ep",
<a href="<%== url_for %>">click here</a> to reload the page or
<a href="<%== url_for 'welcome1' %>">click here</a> to load the
welcome111111 page or
*<a href="<%= url_for '/index.html' %>">here</a> to move forward to a
static page.*
*<a href="<%= $c->url_for('/index.html') %>">here</a> to move forward to a
static page.*
*$ perl ../../router get /my_app*
[Sun Feb 15 18:52:51 2015] [info] Mounted /my_app =>
/home/stefan/mojo_apps/my_app/script/my_app
[Sun Feb 15 18:52:51 2015] [info] Mounted /myapp =>
/home/stefan/mojo_apps/myapp/myapp.pl
[Sun Feb 15 18:52:51 2015] [debug] Your secret passphrase needs to be
changed
[Sun Feb 15 18:52:51 2015] [debug] GET "/my_app"
[Sun Feb 15 18:52:51 2015] [debug] Routing to application "MyApp"
<!DOCTYPE html>
<html>
<head><title>Welcome</title></head>
<body><h2>Welcome to the Mojolicious real-time web framework!</h2>
This page was generated from the template
"templates/example/welcome.html.ep"
and the layout "templates/layouts/default.html.ep",
<a href="/my_app">click here</a> to reload the page or
<a href="/my_app/welcome1">click here</a> to load the welcome111111 page or
*<a href="/index.html">here</a> to move forward to a static page.*
*<a href="/index.html">here</a> to move forward to a static page.*
</body>
</html>
--
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.