Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Mojolicious templates

by darutoko (Initiate)
on May 01, 2013 at 10:20 UTC ( #1031543=note: print w/replies, xml ) Need Help??


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

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://1031543]
help
Chatterbox?
LanX wished he could vote in Britain
LanX - A referendum on whether or not to have another Brexit referendum.
LanX - Legalise the hunting of fox hunters

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-06-23 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (554 votes). Check out past polls.