]> git.armaanb.net Git - bettersearch.git/blob - search.html
Implement a working prototype
[bettersearch.git] / search.html
1 <html>
2 <head>
3         <link rel="stylesheet" type="text/css" href="/styles.css">
4 </head>
5 <body>
6 <h1>Search results</h1>
7         <form action="/search">
8                 <label for="q">Search Query</label>
9                 <input type="text" name="q" id="q">
10                 <input type="submit">
11         </form>
12 <dl>
13 @in[r results]{
14         <div class="result">
15                 <dt>@(hash-ref r "title")</dt>
16                 <dd>
17                         <a href="@(hash-ref r "url")">@(hash-ref r "url")</a>
18                         <br>
19                         @(hash-ref r "content")
20                 </dd>
21         </div>
22 }
23 </dl>
24 <body>
25 </html>