Hello,
I have to use mojo:template in my console scripts, and have some questions.
1. I have a template wich I run hundreed time. I want to compile it from
file, and then use interpret in the loop.
But, I don't know how compile it.
In docs first time is "render"
> say $mt->render('Hello <%= $_[0] %>!', 'Bender');
> say $mt->interpret('Fry');
Should I render it with dummy args?
2. I want to use nested templates.
For now I do it strange:
$inner= $mt->render('Hello <%= $_[0] %>!', 'Bender');
$outer=$mt->render('....', $inner);
Is it here better solution?
And how to set template-root-path ?
--
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.