summaryrefslogtreecommitdiff
path: root/views/index.jade
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-29 10:36:01 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-29 10:36:01 +0200
commit4ed7271b1eca560fbad60c240cad23e85ac286f8 (patch)
tree0fc255912ec36735afe17c8870040d4ad768593c /views/index.jade
parentc04cb305f45e39b71a7bdd51f91e8076eae86481 (diff)
downloadcollection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.gz
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.bz2
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.xz
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.zip
o Adding examples from the specification.
Diffstat (limited to 'views/index.jade')
-rw-r--r--views/index.jade17
1 files changed, 14 insertions, 3 deletions
diff --git a/views/index.jade b/views/index.jade
index af774d4..86cfffa 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -3,8 +3,19 @@ extends layout
block content
h1 Collection+JSON Explorer
- form(action="/render")
+ h2 Explore your own collection
+ form(action='/render')
p
label URL:
- input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php")
- input(type="submit", value="Render")
+ input(name='url', value='http://p2k12.bitraf.no/checkins-trygvis.php')
+ input(type='submit', value='Render')
+
+ h2 Examples
+
+ p Taken from
+ a(url='http://amundsen.com/media-types/collection/examples/') Mike Admundsen's examples
+
+ 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}')