Skip to content
Browse files

[web/build.p6] optimization

  • Loading branch information...
1 parent c2f70b7 commit 5f97ed785e34d2919f89af35f4ef6265b58450ee @sergot committed Sep 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/build.p6
View
3 web/build.p6
@@ -13,8 +13,9 @@ my $index = open "$site_dir/index.html", :w;
$index.say: Template::Mojo.new($tmpl).render($projects.list.sort(*.<name>).item, $last_update);
$index.close;
+$tmpl = slurp "module.mojo";
for $projects.list -> $p {
my $m = open "$site_dir/module/{$p<name>}.html", :w;
- $m.say: Template::Mojo.new(slurp "module.mojo").render($p);
+ $m.say: Template::Mojo.new($tmpl).render($p);
$m.close;
}

0 comments on commit 5f97ed7

Please sign in to comment.
Something went wrong with that request. Please try again.