summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.jade11
1 files changed, 6 insertions, 5 deletions
diff --git a/views/index.jade b/views/index.jade
index 86cfffa..caf2954 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -12,10 +12,11 @@ block content
h2 Examples
- p Taken from
- a(url='http://amundsen.com/media-types/collection/examples/') Mike Admundsen's examples
+ p Taken from
+ a(href='http://amundsen.com/media-types/collection/examples/') Mike Admundsen's examples
+ ul
each example in examples
- form(action='/render')
- input(name='url', type='hidden', value='http://#{host}/examples/from-spec/#{example}.collection+json')
- input(type='submit', value='#{example}')
+ li
+ - var u='http://' + host + '/render?url=' + encodeURIComponent('http://' + host + '/examples/from-spec/' + example + '.collection+json')
+ a(href='#{u}') #{example}