-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (54 loc) · 1.79 KB
/
index.html
File metadata and controls
59 lines (54 loc) · 1.79 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
<!doctype html>
<html lang="en-US">
<head>
<title>Backbone Model Example</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="stylesheets/page.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="javascripts/underscore-min.js"></script>
<script src="javascripts/backbone-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js"></script>
</head>
<body>
<main>
<article></article>
<form action="" method="post">
<fieldset>
</fieldset>
</form>
</main>
<script id="product" type="text/x-handlebars">
<header>
<h1>{{name}}</h1>
<p>Last modified <time datetime="{{datetime}}">{{date_formatted}}</time></p>
</header>
{{description}}
<footer>
<h3>Categories</h3>
<ul>
{{#each categories}}
<li>{{.}}
{{/each}}
</ul>
</footer>
</script>
<script id="form" type="text/x-handlebars">
<dl>
<dt><label for="name">Name</label></dt>
<dd><input type="text" name="name" value="{{name}}" /></dd>
<dt><label for="description">Description</label></dt>
<dd><textarea rows="6" cols="80" name="description">{{description}}</textarea></dd>
</dl>
<input type="submit" value="Update" />
</script>
<script>
var product_json = {
"name": "Bananas",
"date": (new Date()).valueOf(),
"description": "A fruit, usually yellow or green, with a soft flesh and a thick rind that is peeled off before consuming.",
"categories": ["fruit", "berry", "starch", "potassium"]
};
</script>
<script src="javascripts/app.js"></script>
</body>
</html>