Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Mojolicious templates

by choroba (Canon)
on May 01, 2013 at 08:50 UTC ( #1031524=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Mojolicious templates
in thread Mojolicious templates

It would be nice if you posted your solution here for future reference. There might be others in the same situation.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: Mojolicious templates
Re^4: Mojolicious templates
by darutoko (Initiate) on May 01, 2013 at 10:20 UTC
    The obvious solution is to use '..' in path like:
    $self->stash(layout => '../path/to/layout');
    But IMHO better way is to use $self->stash(extends => 'path/to/layout');

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2015-07-04 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls