-
Notifications
You must be signed in to change notification settings - Fork 2
/
restdoc-AMD.html
31 lines (29 loc) · 1014 Bytes
/
restdoc-AMD.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
<script src="http://requirejs.org/docs/release/2.1.9/minified/require.js"></script>
<script>
require.config({
baseUrl: "js",
paths: {
"jquery": "http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min"
}
});
</script>
<title>RestDoc Rendering Demo (AMD version)</title>
</head>
<body>
<div id="rendered">
<h1>loading ...</h1>
</div>
<script type="text/javascript">
require(["restdoc-render", "jquery"], function(renderer, $) {
renderer.render("test.json", undefined, $("#rendered"), undefined, "GET");
});
</script>
</body>
</html>