[dancer-users] TT default layout

Rick Leir richard.leir at canadiana.ca
Wed Nov 4 17:15:35 GMT 2015

Why would there be both [% and <% in the default layout? Am I missing

Dancer2$ more share/skel/views/layouts/main.tt
<!DOCTYPE html>
<html lang="en">
  <meta charset="<% settings.charset %>">
  <meta name="viewport" content="width=device-width, initial-scale=1.0,
  <title>[% appname %]</title>
  <link rel="stylesheet" href="<% request.uri_base %>/css/style.css">

<!-- Grab jQuery from a CDN, fall back to local if necessary -->
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript">/* <![CDATA[ */
    !window.jQuery && document.write('<script type="text/javascript"
src="<% request.uri_base %>/javascripts/jquery.js"><\/script>')
/* ]]> */</script>

<% content %>
<div id="footer">
Powered by <a href="http://perldancer.org/">Dancer2</a> <% dancer_version %>
Cheers -- Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151104/6d2cfdfa/attachment.html>

More information about the dancer-users mailing list