[dancer-users] Email + template toolkit
Stefan Hornburg (Racke)
racke at linuxia.de
Wed Mar 2 18:34:41 GMT 2016
On 03/02/2016 07:00 PM, Hugues wrote:
> Hello
> I'm using Dancer + Dancer::Plugin::Email
>
> Do you know if it's possible to send a email using template with template toolkit ?
> and passe variable to this template ?
> thanks
> Hugues.
You can simply assign the output of the template call to a variable and use that
in the email call, e.g.:
https://github.com/interchange/Perl-Dancer-Conference/blob/master/lib/PerlDance/Routes.pm#L310
Regards
Racke
--
Perl and Dancer Development
More information about the dancer-users
mailing list