-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathddpd.html
More file actions
77 lines (61 loc) · 1.5 KB
/
ddpd.html
File metadata and controls
77 lines (61 loc) · 1.5 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<head>
<title>The DDP Directory</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css">
</head>
<body>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/parlaywithme/ddpd">Fork me on GitHub</a>
</div>
</div>
<h1>
DDPD: The Distributed Data Protocol Directory
</h1>
<br><br>
<p>
<b>
DDPD
</b>
is a directory of public services that publish streams of data.
</p>
<p>
<a href="https://www.meteor.com/ddp">DDP</a>
is a simple protocol for fetching structured data from a server, and receiving live updates when that data changes.
</p>
<p>
<b>
To add your service,
</b>
<a href="https://github.com/parlaywithme/ddpd/blob/master/services.coffee">edit this file</a>
and submit a pull request.
</p>
<br><br>
<h2>
Services:
</h2>
<em>
Total services: {{servicesCount}}
</em>
<hr>
{{#each services}}
{{> service}}
{{/each}}
</body>
<template name="service">
<h5>
{{name}}
</h5>
<p>
{{description}} —
<a href="{{repo}}">{{repo}}</a>
</p>
{{#markdown}}
{{ddpVar}} = DDP.connect("{{ddp}}");
{{capitalize collection}} = new Mongo.Collection("{{collection}}",{connection: {{ddpVar}}});
{{ddpVar}}.subscribe("{{subscription}}");
{{capitalize collection}}.findOne();
{{/markdown}}
<code class="with-newlines">
{{format}}
</code>
</template>