Giter Club home page Giter Club logo

2in3's Introduction

The YUI 2in3 Project has been deprecated as of October 7, 2013.
You should not use YUI 2in3 for new projects, and we recommend you migrate to YUI 3.

YUI 2in3 Project

This project contains the all of the supported versions of YUI 2 wrapped
as first class YUI 3 modules, and deployed in a directory structure that
can be intrinsically loaded by YUI 3.1.0+.

Serving the 2in3 files from your local server

Copy all of the files in the dist directory to the location
you wish to serve the files from. Configure your YUI instance
to pull from that location:

YUI({
    groups: {
        yui2: {
            base: '/2in3/',

            // If you have a combo service, you can configure that as well
            // combine: true,
            // comboBase: 'http://myserver.com/combo?',
            // root: '/2in3/build/',

            patterns:  {
                'yui2-': {
                    configFn: function(me) {
                        if(/-skin|reset|fonts|grids|base/.test(me.name)) {
                            me.type = 'css';
                            me.path = me.path.replace(/\.js/, '.css');
                            me.path = me.path.replace(/\/yui2-skin/, '/assets/skins/sam/yui2-skin');
                        }
                    }
                }
            }
        }
    }
}).use('yui2-yahoo', 'yui2-event', function (Y) {
    //
};

Additional Notes

  • YUI 3.3.0 will try to pull the 2.8.2 version of YUI 2 by default.
    The โ€˜yui2โ€™ config can be passed to the instance to load one
    of the other versions.
  • The files under src/script can be used to generate the 2in3 modules,
    but this is lightly documented and there are some path assumptions
    built in.

2in3's People

Contributors

davglass avatar ericf avatar triptych avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.