<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 5, 2015 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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
skel/ contains *our* templates for generating a new application. We use [% %] in our templates when we generate a new application. If we used all [% %] or <% %>, the tags for the sample app would get processed out when we generated a new application. So by having two sets of tags, we can use one set generating the app, and leaving the second set intact in the skeleton application.<br>
<br>
Good question :) Does my answer make sense?<br>
<br>
Jason</blockquote></div><br></div><div class="gmail_extra">Yes, and your answer might be 'authoritative' when some new user is trying to figure this out and Google leads to here!<br>In addition, here is the config for layouts: the WRAPPER path.<br><span style="font-family:monospace,monospace">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></div><div class="gmail_extra"><br>Then in app code, you can refer to a template using a layout like this:<br><span style="font-family:monospace,monospace"><br> my $email_body = template( 'emails/<a href="http://activate.tt">activate.tt</a>',<br> {<br> real_name => $fields{ name },<br> recipient => $fields{ name },<br> });</span><br> <br>File locations:<br>views/emails/<a href="http://activate.tt">activate.tt</a><br>views/layouts/<a href="http://emails.tt">emails.tt</a> <br>Cheers -- Rick </div></div>