Mercurial > wikked
changeset 23:69c34f45c6dd
Initialize RequireJS with better cache busting.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 04 Jan 2013 16:01:55 -0800 |
parents | 65c8a53a0e53 |
children | 8a83b0e91633 |
files | wikked/templates/index.html |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/templates/index.html Fri Jan 04 16:01:22 2013 -0800 +++ b/wikked/templates/index.html Fri Jan 04 16:01:55 2013 -0800 @@ -9,6 +9,12 @@ <body> <div id="app" class="container"> </div> - <script data-main="/js/wikked.js" src="/js/require.js{{cache_bust}}"></script> + <script type="text/javascript"> + var require = { + baseUrl: "/js/", + deps: ["/js/wikked.js{{cache_bust}}"] + }; + </script> + <script src="/js/require.js{{cache_bust}}"></script> </body> </html>