From fca15b816485dad510676146d6a14f299886eea8 2014-11-25 18:26:23 From: Min RK Date: 2014-11-25 18:26:23 Subject: [PATCH] Merge pull request #7035 from Carreau/use-map Use require-js map instead of hacking path to our need. closes #7034 --- diff --git a/IPython/html/templates/page.html b/IPython/html/templates/page.html index 6ec18f4..ab4ca9d 100644 --- a/IPython/html/templates/page.html +++ b/IPython/html/templates/page.html @@ -30,7 +30,6 @@ moment: 'components/moment/moment', codemirror: 'components/codemirror', termjs: 'components/term.js/src/term', - contents: '{{ contents_js_source }}', }, shim: { underscore: { @@ -54,6 +53,14 @@ } } }); + + require.config({ + map: { + '*':{ + 'contents': '{{ contents_js_source }}', + } + } + }); {% block meta %}