diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/data.jade | 49 | ||||
-rw-r--r-- | views/index.jade | 11 | ||||
-rw-r--r-- | views/layout.jade | 7 |
3 files changed, 67 insertions, 0 deletions
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 |