dear M experts---if I understand it correctly, values that are put into the 
stash are converted as if they were global variables in the template.  so 
if I  `self->stash( title => 'hello' );` in my perl file, I can then use 
$title in my html.ep template.  if I want a new variable in the template 
itself, I don't stash it anymore; I just use the global variable:  `my 
$titleme= $title." and me";` and now I can use `<%= $titleme %>`. however, 
if I want my template to pass variables to its layout, I still use the 
stash and not the global.

for debugging and learning purposes, how would I print (a) the entire 
current stash in my template, and (b) the entire set of global variables, 
available to me?  advice appreciated

sincerely,

/iaw

-- 
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to