summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-06-30 23:48:38 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-06-30 23:48:38 +0200
commitec2f803a306c7843a8814029b5e77a9dadffd136 (patch)
treef6d54a0a2808de835bed85d2e8eba5df2d633238 /templates
parent365added92d4faf26f03d14d303be5ac43706c48 (diff)
downloadnode-paste-ec2f803a306c7843a8814029b5e77a9dadffd136.tar.gz
node-paste-ec2f803a306c7843a8814029b5e77a9dadffd136.tar.xz
node-paste-ec2f803a306c7843a8814029b5e77a9dadffd136.zip
progress: templates/css, new router, paste module as db abstraction
Diffstat (limited to 'templates')
-rw-r--r--templates/base.tmpl16
-rw-r--r--templates/newPaste.tmpl5
-rw-r--r--templates/paste.tmpl5
-rw-r--r--templates/submit-form.tmpl18
4 files changed, 44 insertions, 0 deletions
diff --git a/templates/base.tmpl b/templates/base.tmpl
new file mode 100644
index 0000000..fdee53b
--- /dev/null
+++ b/templates/base.tmpl
@@ -0,0 +1,16 @@
+<!doctype html>
+<html>
+<head>
+ <title>node-paste</title>
+ <link href="/static/main.css" rel="stylesheet" type="text/css" />
+ {{#styles}}
+ <link href="{{name}}" rel="stylesheet" type="text/css" />
+ {{/styles}}
+</head>
+
+<body>
+ {{+ content}}
+ Nothing here.
+ {{/ content}}
+</body>
+</html>
diff --git a/templates/newPaste.tmpl b/templates/newPaste.tmpl
new file mode 100644
index 0000000..f6d710a
--- /dev/null
+++ b/templates/newPaste.tmpl
@@ -0,0 +1,5 @@
+{{< base.tmpl}}
+
+{{+content}}
+<a href="/get/{{id}}">{{id}}</a>
+{{/content}}
diff --git a/templates/paste.tmpl b/templates/paste.tmpl
new file mode 100644
index 0000000..790ceea
--- /dev/null
+++ b/templates/paste.tmpl
@@ -0,0 +1,5 @@
+{{< base.tmpl}}
+
+{{+ content}}
+<pre>{{&content}}</pre>
+{{/ content}}
diff --git a/templates/submit-form.tmpl b/templates/submit-form.tmpl
new file mode 100644
index 0000000..5755356
--- /dev/null
+++ b/templates/submit-form.tmpl
@@ -0,0 +1,18 @@
+{{< base.tmpl}}
+
+{{+ content}}
+ <form action="/add" method="POST">
+ <fieldset>
+ <lable for="language">Language:</lable>
+ <select id="language" name="language">
+ <option value="plain">plain text</option>
+ <option value="javascript">JavaScript</option>
+ <option value="auto">auto detection</option>
+ </select>
+
+ <textarea name="content"></textarea>
+
+ <input class="submit" type="submit" value="paste" />
+ </fieldset>
+ </form>
+{{/ content}}