From 9c933e4eb578b77d625efe487866e7433d729666 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 28 Jun 2012 23:22:57 +0200 Subject: o Initial import of application/vnd.collection+json explorer. --- views/data.jade | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ views/index.jade | 11 +++++++++++ views/layout.jade | 7 +++++++ 3 files changed, 67 insertions(+) create mode 100644 views/data.jade create mode 100644 views/index.jade create mode 100644 views/layout.jade (limited to 'views') diff --git a/views/data.jade b/views/data.jade new file mode 100644 index 0000000..3051d63 --- /dev/null +++ b/views/data.jade @@ -0,0 +1,49 @@ +extends layout + +block content + h1= title + p Welcome to #{title} + + form(action="/render") + p + label URL: + input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php") + input(type="submit", value="Render") + + ul + li + a(href="#items") Items + li + a(href="#headers") Headers + li + a(href="#body") Raw body + li + a(href="#formatted-body") Formatted body + + a(id="items") + h1 + a(href="#items") Items + each item, i in doc.items + h2 Item ##{i+1} + h3 Data + ul + each data in item.data + li #{data.name}: #{data.value} + + a(id="headers") + h1 + a(href="#headers") Headers + pre + each value, key in headers + span #{key}: #{value} + br + + a(id="body") + h1 + a(href="#body") Raw body + pre= raw + + a(id="formatted-body") + h1 + a(href="#formatted-body") Formatted body + pre= formattedRaw diff --git a/views/index.jade b/views/index.jade new file mode 100644 index 0000000..55ed3d4 --- /dev/null +++ b/views/index.jade @@ -0,0 +1,11 @@ +extends layout + +block content + h1= title + p Welcome to #{title} + + form(action="/render") + p + label URL: + input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php") + input(type="submit", value="Render") diff --git a/views/layout.jade b/views/layout.jade new file mode 100644 index 0000000..1b7b305 --- /dev/null +++ b/views/layout.jade @@ -0,0 +1,7 @@ +doctype 5 +html + head + title= title + link(rel='stylesheet', href='/stylesheets/style.css') + body + block content \ No newline at end of file -- cgit v1.2.3