Browse files

fixed for latest Ark

  • Loading branch information...
1 parent 0334369 commit 9865dc5899b7635092205c00325a103ef05baad1 @typester committed Oct 14, 2009
Showing with 43 additions and 12 deletions.
  1. +30 −0 root/inc/base.mt
  2. +1 −5 root/index.mt
  3. +9 −5 root/page.mt
  4. +3 −2 root/toc.mt
View
30 root/inc/base.mt
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
+<head>
+<link rel="stylesheet" type="text/css" href="<%= $c->uri_for('/css/default.css') %>" />
+<title><%= $s->{page_title} ? "$s->{page_title} - " : '' %><%= $s->{site_title} %></title>
+</head>
+<body>
+<div id="container">
+
+<h1><%= $s->{page_title} || $s->{site_title} %></h1>
+
+<% block content => '' %>
+
+<div id="menu">
+<ul>
+ <li><a href="<%= $c->uri_for('/') %>">ホーム</a></li>
+ <li><a href="<%= $c->uri_for('/toc') %>">ページ一覧</a></li>
+</ul>
+</div>
+
+<div id="footer">
+ <p>Copyright &#169; 2009 <a href="http://www.kayac.com/">KAYAC Inc.</a> All rights reserved.</p>
+
+ <p>Powered by <a href="http://github.com/typester/ark-document-browser">ark-document-browser</a> <%= $ArkDoc::VERSION %></p>
+</div>
+
+</div>
+</body>
+</html>
View
6 root/index.mt
@@ -1,5 +1 @@
-<%=r $self->render('inc/header') %>
-
-
-
-<%=r $self->render('inc/footer') %>
+% extends 'inc/base'
View
14 root/page.mt
@@ -1,17 +1,21 @@
-<%=r $self->render('inc/header') %>
+% extends 'inc/base'
+% block content => sub {
<div id="index">
-<%=r $stash->{doc}->toc_list %>
+<%= raw_string $stash->{doc}->toc_list %>
</div>
% if (my $desc = $stash->{doc}->section('DESCRIPTION')) {
-<%=r $desc %>
+<%= raw_string $desc %>
% }
% for my $section ($stash->{doc}->sections) {
<h2 id="<%= $section %>"><%= $section %></h2>
-<%=r $stash->{doc}->section( $section ) %>
+<%= raw_string $stash->{doc}->section( $section ) %>
% }
-<%=r $self->render('inc/footer') %>
+% } # endblock content
+
+
+
View
5 root/toc.mt
@@ -1,5 +1,6 @@
-<%=r $self->render('inc/header') %>
+% extends 'inc/base'
+% block content => sub {
<ul>
% for my $module (sort keys %{ $stash->{modules} }) {
<li>
@@ -8,5 +9,5 @@
</li>
% }
</ul>
+% } # endblock content
-<%=r $self->render('inc/footer') %>

0 comments on commit 9865dc5

Please sign in to comment.