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


_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to