]> git.armaanb.net Git - bettersearch.git/blobdiff - search.html
Implement a working prototype
[bettersearch.git] / search.html
diff --git a/search.html b/search.html
new file mode 100644 (file)
index 0000000..2662d28
--- /dev/null
@@ -0,0 +1,25 @@
+<html>
+<head>
+       <link rel="stylesheet" type="text/css" href="/styles.css">
+</head>
+<body>
+<h1>Search results</h1>
+       <form action="/search">
+               <label for="q">Search Query</label>
+               <input type="text" name="q" id="q">
+               <input type="submit">
+       </form>
+<dl>
+@in[r results]{
+       <div class="result">
+               <dt>@(hash-ref r "title")</dt>
+               <dd>
+                       <a href="@(hash-ref r "url")">@(hash-ref r "url")</a>
+                       <br>
+                       @(hash-ref r "content")
+               </dd>
+       </div>
+}
+</dl>
+<body>
+</html>