Cross Reference: meta.js
xref
: /
yui3
/
src
/
loader
/
js
/
meta.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
meta.js revision cfbfbd515717c9fac89a414e4a5c9196bd027dd2
17816
N/A
/**
17816
N/A
* The YUI loader core
17816
N/A
* @module loader
17816
N/A
* @submodule loader-base
17816
N/A
*/
17816
N/A
17816
N/A
if
(!
YUI
.
Env
[Y.
version
]) {
17816
N/A
17816
N/A
(
function
() {
17816
N/A
var
VERSION
= Y.
version
,
17816
N/A
CONFIG
= Y.
config
,
17816
N/A
BUILD
=
'/build/'
,
17816
N/A
ROOT
=
VERSION
+
BUILD
,
17816
N/A
CDN_BASE
= Y.
Env
.
base
,
17816
N/A
GALLERY_VERSION
=
CONFIG
.
gallery
||
'gallery-2010.07.28-20-07'
,
17816
N/A
GALLERY_ROOT
=
GALLERY_VERSION
+
BUILD
,
17816
N/A
TNT
=
'2in3'
,
17816
N/A
TNT_VERSION
=
CONFIG
[
TNT
] ||
'3'
,
17816
N/A
YUI2_VERSION
=
CONFIG
.
yui2
||
'2.8.1'
,
17816
N/A
YUI2_ROOT
=
TNT
+
'.'
+
TNT_VERSION
+
'/'
+
YUI2_VERSION
+
BUILD
,
17816
N/A
COMBO_BASE
=
CDN_BASE
+
'combo?'
,
17816
N/A
META
= {
version
:
VERSION
,
17816
N/A
root
:
ROOT
,
17816
N/A
base
: Y.
Env
.
base
,
17816
N/A
comboBase
:
COMBO_BASE
,
17816
N/A
skin
: {
defaultSkin
:
'sam'
,
17816
N/A
base
:
'
assets
/
skins
/'
,
17816
N/A
path
:
'skin.css'
,
17816
N/A
after
: [
'cssreset'
,
17816
N/A
'cssfonts'
,
17816
N/A
'cssgrids'
,
17816
N/A
'cssbase'
,
17816
N/A
'cssreset-context'
,
17816
N/A
'cssfonts-context'
] },
17816
N/A
groups
: {},
17816
N/A
// modules: { / METAGEN / },
17816
N/A
patterns
: {} },
17816
N/A
groups
=
META
.
groups
;
17816
N/A
17816
N/A
groups
[
VERSION
] = {};
17816
N/A
17816
N/A
groups
.
gallery
= {
17816
N/A
base
:
CDN_BASE
+
GALLERY_ROOT
,
17816
N/A
ext
:
false
,
17816
N/A
combine
:
true
,
17816
N/A
root
:
GALLERY_ROOT
,
17816
N/A
comboBase
:
COMBO_BASE
,
17816
N/A
patterns
: {
'gallery-'
: { },
17816
N/A
'gallerycss-'
: {
type
:
'css'
} }
17816
N/A
};
17816
N/A
17816
N/A
groups
.
yui2
= {
17816
N/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
;
}());
}