forked from SlexAxton/require-handlebars-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.html
More file actions
executable file
·24 lines (23 loc) · 710 Bytes
/
demo.html
File metadata and controls
executable file
·24 lines (23 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DocTypE hTmL>
<html>
<head>
<meta charset=utf-8 />
<title>Demo App for require-handlebars-plugin</title>
</head>
<body>
<div id="demo-app-container"></div>
<!-- If you set the require variable to an object, it automatically is the config :D -->
<script>require = {
locale : "en_ca",
// I change the path as to not duplicate the hbs.js and handlebars plugin.
// Normally, just drop it in the same place as require.js and it'll work fine.
// Essentially just ignore this.
paths : {
'hbs' : '../hbs',
'Handlebars' : '../Handlebars'
}
};</script>
<!-- use a common require.js and app injection method. -->
<script src="demo/require.js" data-main="demo/main.js"></script>
</body>
</html>