diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.tmpl | 16 | ||||
-rw-r--r-- | templates/newPaste.tmpl | 5 | ||||
-rw-r--r-- | templates/paste.tmpl | 5 | ||||
-rw-r--r-- | templates/submit-form.tmpl | 18 |
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}} |