summary refs log tree commit diff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.tt5
-rw-r--r--views/layouts/main.tt17
-rw-r--r--views/user.tt5
3 files changed, 27 insertions, 0 deletions
diff --git a/views/index.tt b/views/index.tt
new file mode 100644
index 0000000..3d6b342
--- /dev/null
+++ b/views/index.tt
@@ -0,0 +1,5 @@
+<h2>It Works!</h2>
+
+<p>
+I'm in <code>/home/franck/tmp/dancerREST/views/index.tt</code>
+</p>
diff --git a/views/layouts/main.tt b/views/layouts/main.tt
new file mode 100644
index 0000000..514bac0
--- /dev/null
+++ b/views/layouts/main.tt
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
+<head>
+<title>dancerREST</title>
+<link rel="stylesheet" type="text/css" href="/css/style.css" />
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+</head>
+<body>
+<h1>dancerREST</h1>
+<div id="content">
+<p><% content %></p>
+</div>
+<div id="footer">
+Powered by <a href="http://dancer.sukria.net">Dancer</a> 
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/views/user.tt b/views/user.tt
new file mode 100644
index 0000000..a36ad2b
--- /dev/null
+++ b/views/user.tt
@@ -0,0 +1,5 @@
+<h2>It Works!</h2>
+
+<p>
+hello <% name %>
+</p>