Permalink
Browse files

Use correct module references

  • Loading branch information...
1 parent 9643925 commit 1ee9b6dc5195e5f0baddfdcddc0e1f8b6527f1e3 @kriszyp kriszyp committed Oct 19, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 templates/Page.template
View
14 templates/Page.template
@@ -2,8 +2,20 @@
<title>{{pageName}}</title>
<link rel="stylesheet" href="/public/css/common.css" />
<link rel="stylesheet" href="/public/css/wikiContent.css" />
+ <script>
+ // Configure RequireJS
+ require = {
+ baseUrl: "../packages/",
+ paths: {
+ example: "../public/js/"
+ }
+ };
+ </script>
<script src="/packages/requirejs/require.js"></script>
- <script src="/packages/example/monitor.js"></script>
+ <script>
+ require(["example/monitor"]);
+ </script>
+
<body>
<div id="headerContainer"><span class="pageName">{{pageName}}<span></div>
<div id="content">

0 comments on commit 1ee9b6d

Please sign in to comment.