Re: [Mojolicious] Rendering templates question

2019-10-04 Thread Stefan Adams
Got it! Your answer helped me to track down the code block I was looking for: Mojo::Template::_wrap() . I was just curious how it works. Thank you! On Fri, Oct 4, 2019 at 2:10 PM Dan Book wrote: >

Re: [Mojolicious] Rendering templates question

2019-10-04 Thread Dan Book
Mojolicious::Plugin::EPRenderer passes the stash as args to Mojo::Template, which has the vars option enabled and thus creates variables based on the passed hash. -Dan On Fri, Oct 4, 2019 at 1:33 PM Stefan Adams wrote: > In Mojolicious::Guides::Render#Embedded-Perl >

[Mojolicious] Rendering templates question

2019-10-04 Thread Stefan Adams
In Mojolicious::Guides::Render#Embedded-Perl , it says: At the beginning of the template, stash values that don't have invalid characters in their name get automatically initialized as normal variables, and the controller