forked from max-mapper/pages
/
page.html
39 lines (39 loc) · 1.23 KB
/
page.html
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
{{>header}}
<div id="tools"></div>
<div id="wiki"><div class="wiki">{{{body}}}</div></div>
<div id="comments"></div>
{{#has_atts}}
<div id="files">
<p>Files attached to <em>{{title}}</em>:</p>
<ul>
{{#atts}}
<li><a href="{{uri}}">{{name}}</a> ({{type}})</li>
{{/atts}}
</ul>
</div>
{{/has_atts}}
</body>
<script src="../script/myloader.js"></script>
<script src="/_utils/script/base64.js"></script>
<script src="/_utils/script/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8">
var opts = {};
if (document.location.pathname.indexOf("_design") == -1) {
// we are in a vhost
opts.db = "pages";
opts.design = "pages";
};
opts.code = "_show/app";
$.couch.app(function(app) {
$("#account").evently("account", app);
$("#profile").evently("profile", app);
$.evently.connect("#account","#profile", ["loggedIn","loggedOut"]);
$$("#wiki").docid = {{docid}};
$$("#wiki").title = {{title_json}};
$("#wiki").evently("wiki", app);
$("#comments").evently("comments", app);
$("#tools").evently("tools", app);
$.pathbinder.begin("{{begin}}");
}, opts);
</script>
</html>