diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-01-26 14:56:23 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-01-26 14:56:23 -0600 |
commit | 0d2b29fd9d932f909f46209d17963752379ea545 (patch) | |
tree | e27792b5aa077339b22d8d6c6bd9597d296f519a /root | |
parent | af5867fd48b84c7ea1cba67574294334bb2cc19e (diff) | |
download | narwhal-0d2b29fd9d932f909f46209d17963752379ea545.tar.gz narwhal-0d2b29fd9d932f909f46209d17963752379ea545.zip |
initial sketch
Diffstat (limited to 'root')
-rw-r--r-- | root/templates/edit.tt | 12 | ||||
-rw-r--r-- | root/templates/page.tt | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/root/templates/edit.tt b/root/templates/edit.tt new file mode 100644 index 0000000..2b8f37e --- /dev/null +++ b/root/templates/edit.tt @@ -0,0 +1,12 @@ +<html> +<body> +<h1>[% page %]</h1> +<p><a href="[% uri_for('controller', 'wiki', 'action', 'page', 'page_name', page) %]">View</a></p> +<p> +<form method="POST" action="[% uri_for('controller', 'wiki', 'action', 'edit', 'page_name', page) %]"> +<input type="text" value="[% text %]" name="text" /> +<input type="submit" value="Submit" /> +</form> +</p> +</body> +</html> diff --git a/root/templates/page.tt b/root/templates/page.tt new file mode 100644 index 0000000..43b111f --- /dev/null +++ b/root/templates/page.tt @@ -0,0 +1,9 @@ +<html> +<body> +<h1>[% page %]</h1> +<p><a href="[% uri_for('controller', 'wiki', 'action', 'edit', 'page_name', page) %]">Edit</a></p> +<p> +[% text %] +</p> +</body> +</html> |