[dancer-users] Main Layout Loading

Kadir Beyazlı kadirbeyazli at gmail.com
Thu May 21 10:39:46 BST 2015


Hi All,

My question may be simple so sorry for it from the beginning.
I set layout 'main' at config.yml file as follow:

*layout: "main"*

main.tt is loaded if I use a template at my code.
What is the reason main.tt is not loaded if I don't use a template?
For example, at following code, why main.tt is loaded at login page *(get
'/login') * but not loaded at *Home Page (**get '/' )*?







*get '/' => sub { return "Home Page"; };  get '/login' => sub {    #
Display a login page; the original URL they requested is available as    #
param('requested_path'), so could be put in a hidden field in the
formtemplate 'login', { path => param('requested_path') };};*

I could not find a logic explanation for it.

-- 

*Kadir BeyazlıComputer Engineer*
*GSM : +90 535 821 50 00*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150521/d334ecdf/attachment.html>


More information about the dancer-users mailing list