[dancer-users] Setting title in autopage mode

Gabor Szabo gabor at szabgab.com
Mon Jan 12 15:19:08 GMT 2015


Hi,

if a website - such as the http://perldancer.org/ uses auto_page: 1 in the
configuration
it means you don't need to create a route for each template, if a page
called /xyz  is
requested then, if there is a views/xyz.tt then that file will be served in
the main layout.

The question: how can I set the title (which is in the layout) of such page?
I tried to add
<% title="abc" %> to the views/xyz.tt file but it did not have an impact.

Is it possible? How?

Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150112/c51d328a/attachment.html>


More information about the dancer-users mailing list