mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-10 08:25:34 +00:00
29 lines
826 B
HTML
Executable File
29 lines
826 B
HTML
Executable File
<!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",
|
|
// default plugin settings, listing here just as a reference
|
|
hbs : {
|
|
templateExtension : 'hbs',
|
|
helperDirectory : "template/helpers/"
|
|
},
|
|
// 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'
|
|
}
|
|
};</script>
|
|
<!-- use a common require.js and app injection method. -->
|
|
<script src="demo/require.js" data-main="demo/main.js"></script>
|
|
</body>
|
|
</html>
|