-
Notifications
You must be signed in to change notification settings - Fork 2
/
core templates.html
32 lines (27 loc) · 944 Bytes
/
core templates.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Include.js test</title>
<meta name="author" content="Vlad Balin">
<script type="text/javascript" src="lib/requireplugins-jquery-1.4.3.js"></script>
<script type="text/javascript" src="include.js"></script>
<script type="text/javascript" src="plugins/templates.js"></script>
<script type="text/javascript">
// This is config object.
$.include.settings = {
baseUrl : "/include.js", // set path to the project's web root here...
html : { root: "html/" } // html templates root directory...
};
$.include({
view : 'views/main' // include view/main module...
})
.main( function( _ ){
_.view( $('body') ); // view/main exports the function. Let's call this function.
});
</script>
</head>
<body>
</body>
</html>