<div dir="ltr">There was a thread on this back in November:<br><div><a href="http://lists.preshweb.co.uk/pipermail/dancer-users/2015-November/005294.html">http://lists.preshweb.co.uk/pipermail/dancer-users/2015-November/005294.html</a><br><a href="http://lists.preshweb.co.uk/pipermail/dancer-users/2015-November/005297.html">http://lists.preshweb.co.uk/pipermail/dancer-users/2015-November/005297.html</a><br></div><div class="gmail_extra"><br>This is what I need in config.yml to make it work (is there a simpler way?):<span style="font-family:monospace,monospace"><br>template: "template_toolkit"<br>charset: UTF-8<br>engines:<br> template:<br> template_toolkit:<br> ENCODING: utf8<br> INCLUDE_PATH: 'views'<br> start_tag: '[%'<br> end_tag: '%]'<br> WRAPPER: layouts/<a href="http://emails.tt">emails.tt</a></span><br><br>In a pm:<br> my $email_body = template(<br> 'emails/<a href="http://activate.tt">activate.tt</a>',<br> \%fields,<br> );<br><br></div><div class="gmail_extra">In a tt: <br>[% FILTER html_para %]<br>Bonjour / Hello [% name %]<br>..<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 17, 2016 at 7:00 AM, <span dir="ltr"><<a href="mailto:dancer-users-request@dancer.pm" target="_blank">dancer-users-request@dancer.pm</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
From: Kadir Beyazl? <<a href="mailto:kadirbeyazli@gmail.com">kadirbeyazli@gmail.com</a>><br>
On Sat, Jan 16, 2016 at 1:09 AM, Kadir Beyazl? <<a href="mailto:kadirbeyazli@gmail.com">kadirbeyazli@gmail.com</a>><br>
wrote:<br>
<br>
> Hi,<br>
><br>
> I checked from following article that config.yml is correct for template<br>
> toolkit parameters:<br>
><br>
><br>
> <a href="http://search.cpan.org/~xsawyerx/Dancer2-0.157001/lib/Dancer2/Manual/Migration.pod" rel="noreferrer" target="_blank">http://search.cpan.org/~xsawyerx/Dancer2-0.157001/lib/Dancer2/Manual/Migration.pod</a><br>
><br>
> Why does not my code use '<%' and '%>' tags although they are defined at<br>
> config.yml?<br>
> It is working by using default tags '[%' '%]'. I am writing config.yml<br>
> content again:<br>
><br>
> template: "template_toolkit"<br>
> engines:<br>
> template:<br>
> template_toolkit:<br>
> start_tag: '<%'<br>
> end_tag: '%>'<br>
><br>
><br>
><br>
> On Sat, Jan 16, 2016 at 12:54 AM, Kadir Beyazl? <<a href="mailto:kadirbeyazli@gmail.com">kadirbeyazli@gmail.com</a>><br>
> wrote:<br>
><br>
>> When I changed tag from <% %> to [% %] at .tt file it worked. But it is<br>
>> defined as follow at config.yml so <% %> tags should work.<br>
>><br>
>> template: "template_toolkit" # I deleted this line<br>
>> engines:<br>
>> template:<br>
>> template_toolkit:<br>
>> start_tag: '<%'<br>
>> end_tag: '%>'<br>
>><br>
>> On Sat, Jan 16, 2016 at 12:40 AM, Kadir Beyazl? <<a href="mailto:kadirbeyazli@gmail.com">kadirbeyazli@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Hi All,<br>
>>><br>
>>> My project at my local pc was working when I tried 2 weeks ago.<br>
>>> Now I tried but realized that template toolkit parameters are not set.<br>
>>> I see following when I click on "View Page Source"<br>
>>><br>
>>> <html lang="tr"><br>
>>> <head><br>
>>><br>
>>> <title>adopen</title><br>
>>> <meta charset="<% settings.charset %>"><br>
>>> <meta name="viewport" content="width=device-width, initial-scale=1"><br>
>>> <link rel="stylesheet" href="<% request.uri_base<br>
>>> %>/css/bootstrap.min.css"><br>
>>> <script src="<% request.uri_base %>/javascripts/jquery.min.js"></script><br>
>>> <script src="<% request.uri_base<br>
>>> %>/javascripts/bootstrap.min.js"></script><br>
>>> <link rel="stylesheet" href="<% request.uri_base %>/css/mystyle.css" /><br>
>>><br>
>>><br>
>>> I checked config.yml whether I changed start-end tag of template toolkit<br>
>>> but I see that it is corrrect.<br>
>>><br>
>>> # config.yml<br>
>>> template: "template_toolkit"<br>
>>> engines:<br>
>>> template:<br>
>>> template_toolkit:<br>
>>> start_tag: '<%'<br>
>>> end_tag: '%>'<br>
>>><br>
>>> What may problem be? Last week I upgraded Ubuntu version from 15.04 to<br>
>>> 15.10 but this should not be reason.<br>
>>> I installed Dancer2, Template again in case upgrade caused a problem but<br>
>>> nothing changed<br>
>>><br>
>>> I am starting my project with plackup command<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20160116/aaf59bba/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20160116/aaf59bba/attachment-0001.html</a>><br>
<br></blockquote></div>-- <br><div class="gmail_signature"><div dir="ltr">Rick Leir<br>Developer, Canadiana.ca<br></div></div>
</div></div>