diff --git a/site/default/static/config.js b/site/default/static/config.js index 5bdb66a22..b7628c872 100644 --- a/site/default/static/config.js +++ b/site/default/static/config.js @@ -1,21 +1,17 @@ (function () { + var map = require('./map'); var isClient = typeof window !== "undefined"; var configData = { - map: { - "jquery/jquery": "jquery", - "benchmark/benchmark": "benchmark", + map, + ext: { + 'stache': 'steal-stache' }, meta: { jquery: { exports: "jQuery" }, prettify: {format: "global"} - }, - ext: { - ejs: "can/view/ejs/system", - mustache: "can/view/mustache/system", - stache: "can/view/stache/system" } }; @@ -27,6 +23,7 @@ }; } + System.config(configData); })(); diff --git a/site/default/static/map.js b/site/default/static/map.js new file mode 100644 index 000000000..5a7c15131 --- /dev/null +++ b/site/default/static/map.js @@ -0,0 +1,34 @@ +module.exports = { + 'can-compute': { + 'proto-compute': 'can-compute/proto-compute', + }, + 'can-map': { + 'bubble': 'can-map/bubble', + 'map-helpers': 'can-map/map-helpers', + }, + 'can-stache': { + 'helpers/core': 'can-stache/helpers/core', + 'helpers/converter': 'can-stache/helpers/converter', + 'src/html_section': 'can-stache/src/html_section', + 'src/intermediate_and_imports': 'can-stache/src/intermediate_and_imports', + 'src/mustache_core': 'can-stache/src/mustache_core', + 'src/text_section': 'can-stache/src/text_section', + }, + 'can-view-live': { + 'lib/attr': 'can-view-live/lib/attr', + 'lib/attrs': 'can-view-live/lib/attrs', + 'lib/core': 'can-view-live/lib/core', + 'lib/html': 'can-view-live/lib/html', + 'lib/list': 'can-view-live/lib/list', + 'lib/text': 'can-view-live/lib/text', + }, + 'can-view-scope': { + 'compute_data': 'can-view-scope/compute_data', + 'reference-map': 'can-view-scope/reference-map', + }, + 'steal-stache': { + 'add-bundles': 'steal-stache/add-bundles', + }, + "jquery/jquery": "jquery", + "benchmark/benchmark": "benchmark", +}; \ No newline at end of file diff --git a/site/default/templates/layout.mustache b/site/default/templates/layout.mustache index 842a27ab8..80e5a07ea 100644 --- a/site/default/templates/layout.mustache +++ b/site/default/templates/layout.mustache @@ -84,8 +84,8 @@ } {{/if}}