Skip to content
Permalink
Browse files

Use the new %stash support to implement dynamic HTML page titles

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
melo committed Sep 19, 2009
1 parent f3ef0e0 commit bfe815aa90f686dc3a613629707af1bf4e128ab4
Showing with 6 additions and 2 deletions.
  1. +2 −1 master/autohandler
  2. +4 −1 site1/about/index.html
@@ -1,7 +1,8 @@
% $stash{title} = 'Our pretty sites';
% my $content = $m->scall_next;
<html>
<head>
<title>Our pretty sites</title>
<title><% $stash{title} | h %></title>
</head>
<body>
<& header.mc &>
@@ -1 +1,4 @@
About site1
%
% $stash{title} = "About: $stash{title}";
%
About site1

0 comments on commit bfe815a

Please sign in to comment.
You can’t perform that action at this time.