summaryrefslogtreecommitdiff
path: root/repoze/bfg/sampleapp/www
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/sampleapp/www')
-rw-r--r--repoze/bfg/sampleapp/www/blog.pt19
-rw-r--r--repoze/bfg/sampleapp/www/blog_entry.pt12
-rw-r--r--repoze/bfg/sampleapp/www/blog_view.pt7
-rw-r--r--repoze/bfg/sampleapp/www/contents.pt6
4 files changed, 37 insertions, 7 deletions
diff --git a/repoze/bfg/sampleapp/www/blog.pt b/repoze/bfg/sampleapp/www/blog.pt
new file mode 100644
index 000000000..ffe8659df
--- /dev/null
+++ b/repoze/bfg/sampleapp/www/blog.pt
@@ -0,0 +1,19 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal">
+<head></head>
+<body tal:define="info view.getInfo()">
+ <h1 tal:content="info.name">Blog Name</h1>
+ <table border="0">
+ <thead>
+ <th>Title</th>
+ <th>Author</th>
+ <th>Created</th>
+ </thead>
+ <tr tal:repeat="entry info.entries">
+ <td><a href="${entry.name}/">${entry.title}</a></td>
+ <td>${entry.author}</td>
+ <td>${entry.created}</td>
+ </tr>
+ </table>
+</body>
+</html>
diff --git a/repoze/bfg/sampleapp/www/blog_entry.pt b/repoze/bfg/sampleapp/www/blog_entry.pt
new file mode 100644
index 000000000..20e1b4409
--- /dev/null
+++ b/repoze/bfg/sampleapp/www/blog_entry.pt
@@ -0,0 +1,12 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal">
+<head></head>
+<body>
+ <div tal:define="info view.getInfo()">
+ <p><a href="..">Up</a></p>
+ <h1>${info.title}</h1>
+ <p>by ${info.author}</p>
+ <div tal:content="structure info.body"></div>
+ </div>
+</body>
+</html>
diff --git a/repoze/bfg/sampleapp/www/blog_view.pt b/repoze/bfg/sampleapp/www/blog_view.pt
deleted file mode 100644
index ceedf0cc1..000000000
--- a/repoze/bfg/sampleapp/www/blog_view.pt
+++ /dev/null
@@ -1,7 +0,0 @@
-<div xmlns="http://www.w3.org/1999/xhtml"
- xmlns:tal="http://xml.zope.org/namespaces/tal">
- <div tal:define="info path: view/getInfo">
- <span tal:content="path: info/greeting"/> from
- <span tal:content="path: info/id"/>
- </div>
-</div>
diff --git a/repoze/bfg/sampleapp/www/contents.pt b/repoze/bfg/sampleapp/www/contents.pt
new file mode 100644
index 000000000..eaae20ed5
--- /dev/null
+++ b/repoze/bfg/sampleapp/www/contents.pt
@@ -0,0 +1,6 @@
+<div xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal">
+ <div tal:repeat="name context">
+ <a href="${name}/">${name}</a>
+ </div>
+</div>