meta.js revision cfbfbd515717c9fac89a414e4a5c9196bd027dd2
17816N/A/**
17816N/A * The YUI loader core
17816N/A * @module loader
17816N/A * @submodule loader-base
17816N/A */
17816N/A
17816N/Aif (!YUI.Env[Y.version]) {
17816N/A
17816N/A (function() {
17816N/A var VERSION = Y.version,
17816N/A CONFIG = Y.config,
17816N/A BUILD = '/build/',
17816N/A ROOT = VERSION + BUILD,
17816N/A CDN_BASE = Y.Env.base,
17816N/A GALLERY_VERSION = CONFIG.gallery || 'gallery-2010.07.28-20-07',
17816N/A GALLERY_ROOT = GALLERY_VERSION + BUILD,
17816N/A TNT = '2in3',
17816N/A TNT_VERSION = CONFIG[TNT] || '3',
17816N/A YUI2_VERSION = CONFIG.yui2 || '2.8.1',
17816N/A YUI2_ROOT = TNT + '.' + TNT_VERSION + '/' + YUI2_VERSION + BUILD,
17816N/A COMBO_BASE = CDN_BASE + 'combo?',
17816N/A META = { version: VERSION,
17816N/A root: ROOT,
17816N/A base: Y.Env.base,
17816N/A comboBase: COMBO_BASE,
17816N/A skin: { defaultSkin: 'sam',
17816N/A base: 'assets/skins/',
17816N/A path: 'skin.css',
17816N/A after: [ 'cssreset',
17816N/A 'cssfonts',
17816N/A 'cssgrids',
17816N/A 'cssbase',
17816N/A 'cssreset-context',
17816N/A 'cssfonts-context' ] },
17816N/A groups: {},
17816N/A // modules: { / METAGEN / },
17816N/A patterns: {} },
17816N/A groups = META.groups;
17816N/A
17816N/A groups[VERSION] = {};
17816N/A
17816N/A groups.gallery = {
17816N/A base: CDN_BASE + GALLERY_ROOT,
17816N/A ext: false,
17816N/A combine: true,
17816N/A root: GALLERY_ROOT,
17816N/A comboBase: COMBO_BASE,
17816N/A patterns: { 'gallery-': { },
17816N/A 'gallerycss-': { type: 'css' } }
17816N/A };
17816N/A
17816N/A groups.yui2 = {
17816N/A base: CDN_BASE + YUI2_ROOT,
combine: true,
ext: false,
root: YUI2_ROOT,
comboBase: COMBO_BASE,
patterns: {
'yui2-': {
configFn: function(me) {
if(/-skin|reset|fonts|grids|base/.test(me.name)) {
me.type = 'css';
me.path = me.path.replace(/\.js/, '.css');
// this makes skins in builds earlier than 2.6.0 work as long as combine is false
me.path = me.path.replace(/\/yui2-skin/, '/assets/skins/sam/yui2-skin');
}
}
}
}
};
YUI.Env[VERSION] = META;
}());
}