-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspomet.html
More file actions
55 lines (50 loc) · 1.71 KB
/
Copy pathspomet.html
File metadata and controls
55 lines (50 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<head>
<title>spomet</title>
</head>
<body>
<div class='container-fluid offset1 span10'>
<div class='row-fluid'>
<h1>Welcome to Spomet</h1>
<p>Spomet is the contraction of Spotting Meteors.</p><p>It is a simple, but for many cases sufficient, search engine for Meteor. It should be easily includable into your Meteor project. See Spomet's GitHub <a href="https://github.com/Crenshinibon/spomet">repository</a> for more information</p>
</div>
<h2>Test It</h2>
<p>Add text (taken from my <a href="http://shiggyenterprises.wordpress.com">blog</a>) from the left side to the index, by using the provided button. Wait a moment, then you should be able to find the document, using the search box on the right.</p>
<div class='row-fluid container-fluid'>
<div class='span6'>
{{> ownText}}
{{> addable}}
</div>
<div class='span6'>
{{> search}}
</div>
</div>
</div>
</body>
<template name="addable">
{{#each posts}}
<div style="float:right"><input type="button" class="btn" value="Make Searchable"></div>
<p><b>{{this.title}}</b></p>
<p>{{this.text}}</p>
{{/each}}
</template>
<template name="ownText">
<form>
<div style="float:right"><input type="submit" class="btn" value="Make Searchable"></div>
<textarea rows="6"></textarea>
</form>
</template>
<template name="search">
{{> spometSearch}}
{{#each results}}
{{> result}}
{{/each}}
</template>
<template name="result">
<div class="row-fluid">
<span class="span4">Score: <b>{{score}}</b></span>
<span class="span8">Title: <b>{{title}}</b></span>
</div>
<div class="row-fluid">
<p>{{text}}</p>
</div>
</template>