src/aria/templates/ClassGenerator.js
function (out, res) {
            if (typeof res == "string") {
                var logicalPath = Aria.getLogicalPath(res);
                var serverRes = /([^\/]*)\/Res$/.exec(logicalPath);
                return 'require("ariatemplates/$resources").' + (serverRes ? "module(" + out.stringify(serverRes[1]) + "," : "file(")
                        + out.stringify(logicalPath) + ")";
            }
            if (typeof res == "object") {
                var tplParam = out.templateParam;
                var params = ["", Aria.getLogicalPath(res.provider), tplParam.$classpath, res.onLoad || "",
                        res.handler || ""].concat(res.resources || []);
                for (var i = 0, l = params.length; i < l; i++) {
                    params[i] = out.stringify(params[i]);
                }
                return 'require("ariatemplates/$resourcesProviders").fetch(' + params.join(",") + ')';
            }
        }
function (out, res) {
            if (typeof res == "string") {
                var logicalPath = Aria.getLogicalPath(res);
                var serverRes = /([^\/]*)\/Res$/.exec(logicalPath);
                return 'require("ariatemplates/$resources").' + (serverRes ? "module(" + out.stringify(serverRes[1]) + "," : "file(")
                        + out.stringify(logicalPath) + ")";
            }
            if (typeof res == "object") {
                var tplParam = out.templateParam;
                var params = ["", Aria.getLogicalPath(res.provider), tplParam.$classpath, res.onLoad || "",
                        res.handler || ""].concat(res.resources || []);
                for (var i = 0, l = params.length; i < l; i++) {
                    params[i] = out.stringify(params[i]);
                }
                return 'require("ariatemplates/$resourcesProviders").fetch(' + params.join(",") + ')';
            }
        }
function ( out , res ) { if ( typeof res == "string" ) { var logicalPath = Aria . getLogicalPath ( res ) ; var serverRes = / ([^\/]*)\/Res$ / . exec ( logicalPath ) ; return 'require("ariatemplates/$resources").' + ( serverRes ? "module(" + out . stringify ( serverRes [ 1 ] ) + "," : "file(" ) + out . stringify ( logicalPath ) + ")" ; } if ( typeof res == "object" ) { var tplParam = out . templateParam ; var params = [ "" , Aria . getLogicalPath ( res . provider ) , tplParam . $classpath , res . onLoad || "" , res . handler || "" ] . concat ( res . resources || [ ] ) ; for ( var i = 0 , l = params . length ; i < l ; i ++ ) { params [ i ] = out . stringify ( params [ i ] ) ; } return 'require("ariatemplates/$resourcesProviders").fetch(' + params . join ( "," ) + ')' ; } }
Returns a resource dependency
@param {Object|String} res
Returns a resource dependency