<div dir="ltr"><div>Hi All,<br><br></div><div>My question may be simple so sorry for it from the beginning.<br>I set layout 'main' at config.yml file as follow:<br><br><i>layout: "main"</i><br></div><div><div><br></div><div><a href="http://main.tt">main.tt</a> is loaded if I use a template at my code. <br>What is the reason <a href="http://main.tt">main.tt</a> is not loaded if I don't use a template? <br>For example, at following code, why <a href="http://main.tt">main.tt</a> is loaded at login page <span style="color:rgb(0,0,0)"><i>(get '/login') </i></span> but not loaded at <i>Home Page (</i><i><span style="color:rgb(0,0,0)"><i>get '/' </i></span>)</i>?<br><span style="color:rgb(255,0,0)"><br><i>get '/' => sub { return "Home Page"; };<br> <br>get '/login' => sub {<br> # Display a login page; the original URL they requested is available as<br> # param('requested_path'), so could be put in a hidden field in the form<br>template 'login', { path => param('requested_path') };<br>};</i></span><br><br> I could not find a logic explanation for it. <br><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><b><i>Kadir Beyazlı<br>Computer Engineer</i></b></div><div><b><i>GSM : +90 535 821 50 00</i></b><br></div></div></div>
</div></div></div>