build/updates/builder.js
function () {
            var obj = {
                meta: {
                    yuiSeedUrl: 'http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js',
                    yuiGridsUrl: 'http://yui.yahooapis.com/3.5.0/build/cssgrids/cssgrids-min.css'
                }
            };
            if (!this._meta) {
                try {
                    var meta,
                        theme = path.join(themeDir, 'theme.json');
                    if (Y.Files.exists(theme)) {
                        Y.log('Loading theme from ' + theme, 'info', 'builder');
                        meta = Y.Files.getJSON(theme);
                    } else if (DEFAULT_THEME !== themeDir) {
                        theme = path.join(DEFAULT_THEME, 'theme.json');
                        if (Y.Files.exists(theme)) {
                            Y.log('Loading theme from ' + theme, 'info', 'builder');
                            meta = Y.Files.getJSON(theme);
                        }
                    }

                    if (meta) {
                        obj.meta = meta;
                        this._meta = meta;
                    }
                } catch (e) {
                    console.error('Error', e);
                }
            } else {
                obj.meta = this._meta;
            }
            Y.each(this.data.project, function (v, k) {
                var key = k.substring(0, 1).toUpperCase() + k.substring(1, k.length);
                obj.meta['project' + key] = v;
            });
            return obj;
        }
function () {
            var obj = {
                meta: {
                    yuiSeedUrl: 'http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js',
                    yuiGridsUrl: 'http://yui.yahooapis.com/3.5.0/build/cssgrids/cssgrids-min.css'
                }
            };
            if (!this._meta) {
                try {
                    var meta,
                        theme = path.join(themeDir, 'theme.json');
                    if (Y.Files.exists(theme)) {
                        Y.log('Loading theme from ' + theme, 'info', 'builder');
                        meta = Y.Files.getJSON(theme);
                    } else if (DEFAULT_THEME !== themeDir) {
                        theme = path.join(DEFAULT_THEME, 'theme.json');
                        if (Y.Files.exists(theme)) {
                            Y.log('Loading theme from ' + theme, 'info', 'builder');
                            meta = Y.Files.getJSON(theme);
                        }
                    }

                    if (meta) {
                        obj.meta = meta;
                        this._meta = meta;
                    }
                } catch (e) {
                    console.error('Error', e);
                }
            } else {
                obj.meta = this._meta;
            }
            Y.each(this.data.project, function (v, k) {
                var key = k.substring(0, 1).toUpperCase() + k.substring(1, k.length);
                obj.meta['project' + key] = v;
            });
            return obj;
        }
function ( ) { var obj = { meta : { yuiSeedUrl : 'http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js' , yuiGridsUrl : 'http://yui.yahooapis.com/3.5.0/build/cssgrids/cssgrids-min.css' } } ; if ( ! this . _meta ) { try { var meta , theme = path . join ( themeDir , 'theme.json' ) ; if ( Y . Files . exists ( theme ) ) { Y . log ( 'Loading theme from ' + theme , 'info' , 'builder' ) ; meta = Y . Files . getJSON ( theme ) ; } else if ( DEFAULT_THEME !== themeDir ) { theme = path . join ( DEFAULT_THEME , 'theme.json' ) ; if ( Y . Files . exists ( theme ) ) { Y . log ( 'Loading theme from ' + theme , 'info' , 'builder' ) ; meta = Y . Files . getJSON ( theme ) ; } } if ( meta ) { obj . meta = meta ; this . _meta = meta ; } } catch ( e ) { console . error ( 'Error' , e ) ; } } else { obj . meta = this . _meta ; } Y . each ( this . data . project , function ( v , k ) { var key = k . substring ( 0 , 1 ) . toUpperCase ( ) + k . substring ( 1 , k . length ) ; obj . meta [ 'project' + key ] = v ; } ) ; return obj ; }
Prep the meta data to be fed to Selleck
@method getProjectMeta
@return {Object} The project metadata
Prep the meta data to be fed to Selleck