-
Notifications
You must be signed in to change notification settings - Fork 122
/
index.html
80 lines (70 loc) · 3.85 KB
/
index.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
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
77
78
79
80
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>
Hello Backbone.js Tutorial
</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" media="all" href="docs/docco.css" type="text/css">
</head>
<body>
<div id="container">
<div id="background"></div>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="docs">
<h1>
Hello Backbone.js
</h1>
</th>
<th class="code"></th>
</tr>
</thead>
<tbody>
<tr id="section-1">
<td class="docs">
<p>
<strong>Hello Backbone</strong> is a simple <a href="http://documentcloud.github.com/backbone">Backbone.js</a> tutorial comprised of self-explanatory "hello world" examples of increasing complexity. It was designed to provide a smoother transition from zero to the popular <a href="http://documentcloud.github.com/backbone/docs/todos.html">Todos example</a>.
</p>
<p>
Backbone.js offers a lean <a href='http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller'>MVC framework</a> for organizing your Javascript application. It leads to more maintainable code by untangling the "spaghetti" of callbacks tied to different parts of the DOM and the backend server that often arises in rich client-side applications.
</p>
<p>
The tutorial starts with a minimalist View object, and progressively introduces event binding/handling, Models, and Collections.
</p>
<p style='background:#ffffaa; padding:10px; text-align:center;'>
<a href='docs/1.html' style='color:blue;'>Click here</a> to start the tutorial.
</p>
<p>
Once in the tutorial, use the navigation menu in the top-right corner to view other examples. Example numbers are in order of increasing complexity.
</p>
</td>
<td class="code">
<p style='color:black;'>
The only non-Javascript part of the examples is the following HTML template:
</p>
<pre style='color:#777;'>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>hello-backbonejs</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js" type="text/javascript" charset="utf-8"></script>
<script src="...number.js..." type="text/javascript" charset="utf-8"></script>
</head>
<body>
</body>
</html>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<a href="https://github.com/arturadib/hello-backbonejs"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
</body>
</html>